Skip to content

Instantly share code, notes, and snippets.

@wilson
Created October 8, 2008 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilson/15639 to your computer and use it in GitHub Desktop.
Save wilson/15639 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment