2005-03-27 10:07:27 -05:00
|
|
|
#!/usr/local/bin/ruby
|
|
|
|
|
2006-04-09 18:14:08 -04:00
|
|
|
VERSION = ARGV.first
|
2005-03-27 10:07:27 -05:00
|
|
|
PACKAGES = %w( activesupport activerecord actionpack actionmailer actionwebservice )
|
|
|
|
|
|
|
|
# Checkout source
|
2005-07-07 02:39:48 -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
|
2006-04-09 18:14:08 -04:00
|
|
|
`rubyforge add_release rails rails 'REL #{VERSION}' rails-#{VERSION}.tgz`
|
|
|
|
`rubyforge add_release rails rails 'REL #{VERSION}' rails-#{VERSION}.zip`
|
2005-03-27 10:07:27 -05:00
|
|
|
|
|
|
|
# Create SVN tag
|
2006-04-09 18:14:08 -04:00
|
|
|
puts "Remeber to create SVN tag"
|