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"
|
2008-05-11 19:21:47 -04:00
|
|
|
build_number = Time.now.strftime("%Y%m%d%H%M%S").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
|