add prefix arg to 'rake install'

This commit is contained in:
Seth Buntin authored and Ross Boucher committed 2009-05-15 14:55:58 -07:00
1 parent c0fc298082
commit abb49664f9
1 file changed
+6 -1
+6 -1
View File
@@ -72,7 +72,12 @@ file_d $STARTER_DOWNLOAD_README => [$STARTER_README] do
end
task :install => [:downloads] do
system %{cd #{$TOOLS_DOWNLOAD} && sudo sh ./install-tools }
if ENV['prefix']
prefix = "--prefix #{ENV['prefix']}"
else
prefix = ''
end
system %{cd #{$TOOLS_DOWNLOAD} && sudo sh ./install-tools #{prefix} }
end
task :test => [:build] do