Skip to content

Commit

Permalink
Modify the Rakefile to support a jgem install.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner authored and nex3 committed Feb 26, 2009
1 parent 8a5ae5b commit 5e09c48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Expand Up @@ -64,7 +64,8 @@ at_exit { File.delete('REVISION') rescue nil }
desc "Install Haml as a gem."
task :install => [:package] do
sudo = RUBY_PLATFORM =~ /win32/ ? '' : 'sudo'
sh %{#{sudo} gem install --no-ri pkg/haml-#{File.read('VERSION').strip}}
gem = RUBY_PLATFORM =~ /java/ ? 'jgem' : 'gem'
sh %{#{sudo} #{gem} install --no-ri pkg/haml-#{File.read('VERSION').strip}}
end

desc "Release a new Haml package to Rubyforge. Requires the NAME and VERSION flags."
Expand Down Expand Up @@ -181,4 +182,4 @@ namespace :test do
`rm -rf test/rails`
end
end
end
end

0 comments on commit 5e09c48

Please sign in to comment.