wilson (owner)

Revisions

gist: 33582 Download_button fork
public
Public Clone URL: git://gist.github.com/33582.git
Embed All Files: show embed
MacVim from git #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 本拠> git remote show origin
# * remote origin
# URL: git://repo.or.cz/MacVim.git
# Remote branch merged with 'git pull' while on branch master
# master
# Tracked remote branches
# master stable vim
 
# 本拠> cat Rakefile
desc "Build MacVim and copy MacVim.app to the root of the checkout"
task :package do
  cd "src"
  sh "make clean"
  sh "./configure --enable-gui=macvim"
  sh "make"
  cd "MacVim"
  sh "xcodebuild"
  cd "../.."
  rm_rf "MacVim.app"
  cp_r "src/MacVim/build/Release/MacVim.app", "."
end
 
desc "Install MacVim, building if needed"
task :install do
  Rake::Task["package"].invoke unless File.exist?("MacVim.app")
  raise "MacVim.app seems not to exist. Aborting!" unless File.readable?("MacVim.app")
  rm_rf "/Applications/MacVim.app"
  cp_r "MacVim.app", "/Applications/"
end