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

Detect mingw as Windows when installing the gem.

Closes gh-111
This commit is contained in:
Nathan Weizenbaum 2010-03-25 15:07:34 -07:00
parent 0a52f55d3e
commit a88e735dbb

View file

@ -72,7 +72,7 @@ at_exit { File.delete(scope('REVISION')) rescue nil }
desc "Install Haml as a gem."
task :install => [:package] do
sudo = RUBY_PLATFORM =~ /win32/ ? '' : 'sudo'
sudo = RUBY_PLATFORM =~ /win32|mingw/ ? '' : 'sudo'
gem = RUBY_PLATFORM =~ /java/ ? 'jgem' : 'gem'
sh %{#{sudo} #{gem} install --no-ri pkg/haml-#{File.read(scope('VERSION')).strip}}
end