diff options
Diffstat (limited to 'pushgems.rb')
-rwxr-xr-x | pushgems.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pushgems.rb b/pushgems.rb index 69312ccff0..5fa2241909 100755 --- a/pushgems.rb +++ b/pushgems.rb @@ -1,8 +1,14 @@ #!/usr/local/bin/ruby -build_number = `svn log -q -rhead http://dev.rubyonrails.org/svn/rails`.scan(/r([0-9]*)/).first.first.to_i +unless ARGV.first == "no_build" + build_number = `svn log -q -rhead http://dev.rubyonrails.org/svn/rails`.scan(/r([0-9]*)/).first.first.to_i +end -(%w( actionwebservice actionmailer actionpack activerecord railties activesupport) - ARGV).each do |pkg| +%w( actionwebservice actionmailer actionpack activerecord railties activesupport).each do |pkg| puts "Pushing: #{pkg} (#{build_number})" - `cd #{pkg} && rm -rf pkg && PKG_BUILD=#{build_number} rake pgem && cd ..` + if build_number + `cd #{pkg} && rm -rf pkg && PKG_BUILD=#{build_number} rake pgem && cd ..` + else + `cd #{pkg} && rm -rf pkg && rake pgem && cd ..` + end end |