Skip to content
This repository
tree: a17fc20eb1
David Heinemeier Hansson dhh
executable file 25 lines (19 sloc) 0.723 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/usr/bin/env ruby

VERSION = ARGV.first
PACKAGES = %w(activesupport activerecord actionpack actionmailer activeresource)

# 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`
`rubyforge add_release rails rails 'REL #{VERSION}' release/rails-#{VERSION}.zip`
Something went wrong with that request. Please try again.