1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Automatically call sudo in the install rake task.

This commit is contained in:
Nathan Weizenbaum 2008-04-22 18:47:11 -07:00
parent f1ac876497
commit 1a7ccf06d0

View file

@ -113,7 +113,8 @@ END
Rake::Task[:package].enhance { File.delete('REVISION') if File.exists?('REVISION') }
task :install => [:package] do
sh %{gem install --no-ri pkg/haml-#{File.read('VERSION').strip}}
sudo = RUBY_PLATFORM =~ /win32/ ? 'sudo' : ''
sh %{#{sudo} gem install --no-ri pkg/haml-#{File.read('VERSION').strip}}
end
task :release => [:package] do