2007-11-21 10:17:04 -05:00
|
|
|
#!/usr/bin/env ruby
|
2005-01-18 09:13:12 -05:00
|
|
|
|
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
|
|
|
|
2007-04-23 14:55:54 -04:00
|
|
|
%w( activeresource 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
|
2008-04-10 23:09:13 -04:00
|
|
|
end
|