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

25 lines
723 B
Ruby
Raw Normal View History

#!/usr/bin/env ruby
VERSION = ARGV.first
PACKAGES = %w(activesupport activerecord actionpack actionmailer activeresource)
2008-09-05 08:17:25 -04:00
# Copy source
`mkdir release`
(PACKAGES + %w(railties)).each do |p|
`cp -R #{p} release/#{p}`
end
# 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}' release/rails-#{VERSION}.tgz`
2008-05-31 20:03:03 -04:00
`rubyforge add_release rails rails 'REL #{VERSION}' release/rails-#{VERSION}.zip`