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:
parent
0a52f55d3e
commit
a88e735dbb
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue