forked from HipByte/RubyMotion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
21 lines (19 loc) · 691 Bytes
/
Rakefile
File metadata and controls
21 lines (19 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
installation_path = "/Library/RubyMotion"
desc "Replace your local installation with this checkout"
task :install do
if File.exist?("#{installation_path}/lib.backup")
raise "It seems this local checkout is already installed"
else
mv "#{installation_path}/lib", "#{installation_path}/lib.backup"
ln File.dirname(__FILE__) + "/lib", "#{installation_path}/lib"
end
end
desc "Go back to your original installation"
task :uninstall do
if !File.exist?("#{installation_path}/lib.backup")
raise "It seems this local checkout is not installed right now"
else
rm "#{installation_path}/lib"
mv "#{installation_path}/lib.backup", "#{installation_path}/lib"
end
end