From a88e735dbba8af02a8f12a2656c52bfa3364cb99 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Thu, 25 Mar 2010 15:07:34 -0700 Subject: [PATCH] Detect mingw as Windows when installing the gem. Closes gh-111 --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index c84476c1..c031e6c2 100644 --- a/Rakefile +++ b/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