From abb49664f9c14e349e68acf2f2d4882aea6dba62 Mon Sep 17 00:00:00 2001 From: Seth Buntin Date: Fri, 15 May 2009 16:28:25 -0500 Subject: [PATCH] add prefix arg to 'rake install' --- Rakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index d86efbf33..299f83a79 100644 --- a/Rakefile +++ b/Rakefile @@ -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