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"
|
|
|
|
build_number = `svn log -q -rhead http://dev.rubyonrails.org/svn/rails`.scan(/r([0-9]*)/).first.first.to_i
|
|
|
|
end
|
2005-01-18 09:13:12 -05:00
|
|
|
|
2005-03-22 08:29:22 -05: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
|