mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Modify the Rakefile to support a jgem install.
This commit is contained in:
parent
8a5ae5ba6d
commit
5e09c48227
1 changed files with 3 additions and 2 deletions
3
Rakefile
3
Rakefile
|
@ -64,7 +64,8 @@ at_exit { File.delete('REVISION') rescue nil }
|
||||||
desc "Install Haml as a gem."
|
desc "Install Haml as a gem."
|
||||||
task :install => [:package] do
|
task :install => [:package] do
|
||||||
sudo = RUBY_PLATFORM =~ /win32/ ? '' : 'sudo'
|
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
|
end
|
||||||
|
|
||||||
desc "Release a new Haml package to Rubyforge. Requires the NAME and VERSION flags."
|
desc "Release a new Haml package to Rubyforge. Requires the NAME and VERSION flags."
|
||||||
|
|
Loading…
Reference in a new issue