wilson (owner)

Revisions

  • ad0510 Wed Oct 08 15:48:00 -0700 2008
  • 740e19 Wed Oct 08 15:47:44 -0700 2008
  • 573e09 Wed Oct 08 15:47:24 -0700 2008
gist: 15639 Download_button fork
public
Public Clone URL: git://gist.github.com/15639.git
Embed All Files: show embed
macvim_rakefile.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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