2005-01-18 09:13:12 -05:00
|
|
|
#!/usr/local/bin/ruby
|
|
|
|
|
2005-03-22 08:29:22 -05:00
|
|
|
unless ARGV.first == "no_build"
|
2005-09-03 20:28:28 -04:00
|
|
|
build_number = build_number = `svn log -q -rhead http://dev.rubyonrails.org/svn/rails`.scan(/r([0-9]*)/).first.first.to_i
|
2005-03-22 08:29:22 -05:00
|
|
|
end
|
2005-01-18 09:13:12 -05:00
|
|
|
|
2005-08-30 16:55:42 -04:00
|
|
|
%w( actionwebservice actionmailer actionpack activerecord railties activesupport ).each do |pkg|
|
2005-01-18 09:13:12 -05:00
|
|
|
puts "Pushing: #{pkg} (#{build_number})"
|
2005-03-22 08:29:22 -05:00
|
|
|
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
|
2005-02-15 10:57:44 -05:00
|
|
|
end
|