2007-12-07 08:34:06 -05:00
|
|
|
#!/usr/bin/env ruby
|
2005-03-27 10:07:27 -05:00
|
|
|
|
2006-04-09 18:14:08 -04:00
|
|
|
VERSION = ARGV.first
|
2007-10-15 04:45:23 -04:00
|
|
|
PACKAGES = %w(activesupport activerecord actionpack actionmailer activeresource)
|
2005-03-27 10:07:27 -05:00
|
|
|
|
|
|
|
# Checkout source
|
2008-05-31 20:03:03 -04:00
|
|
|
# `rm -rf release && svn export http://dev.rubyonrails.org/svn/rails/trunk release`
|
2005-03-27 10:07:27 -05:00
|
|
|
|
|
|
|
# Create Rails packages
|
|
|
|
`cd release/railties && rake template=jamis package`
|
|
|
|
|
|
|
|
# Upload documentation
|
2006-04-09 18:14:08 -04:00
|
|
|
`cd release/rails/doc/api && scp -r * davidhh@wrath.rubyonrails.com:public_html/api`
|
2005-03-27 10:07:27 -05:00
|
|
|
|
|
|
|
# Upload packages
|
|
|
|
(PACKAGES + %w(railties)).each do |p|
|
2006-04-09 18:14:08 -04:00
|
|
|
`cd release/#{p} && echo "Releasing #{p}" && rake release`
|
2005-03-27 10:07:27 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
# Upload rails tgz/zip
|
2007-10-05 00:44:04 -04:00
|
|
|
`rubyforge add_release rails rails 'REL #{VERSION}' release/rails-#{VERSION}.tgz`
|
2008-05-31 20:03:03 -04:00
|
|
|
`rubyforge add_release rails rails 'REL #{VERSION}' release/rails-#{VERSION}.zip`
|