1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/release.rb
Jeremy Kemper 47387e1725 Fix typo, closes #7788.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6376 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-11 12:46:15 +00:00

25 lines
765 B
Ruby
Executable file

#!/usr/local/bin/ruby
VERSION = ARGV.first
PACKAGES = %w( activesupport activerecord actionpack actionmailer actionwebservice )
# Checkout source
`rm -rf release && svn export http://dev.rubyonrails.org/svn/rails/trunk release`
# Create Rails packages
`cd release/railties && rake template=jamis package`
# Upload documentation
`cd release/rails/doc/api && scp -r * davidhh@wrath.rubyonrails.com:public_html/api`
# Upload packages
(PACKAGES + %w(railties)).each do |p|
`cd release/#{p} && echo "Releasing #{p}" && rake release`
end
# Upload rails tgz/zip
`rubyforge add_release rails rails 'REL #{VERSION}' rails-#{VERSION}.tgz`
`rubyforge add_release rails rails 'REL #{VERSION}' rails-#{VERSION}.zip`
# Create SVN tag
puts "Remember to create SVN tag"