Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/trunk/release.rb

Revision 8329, 0.8 kB (checked in by david, 7 months ago)

Removed query cache rescue as it could cause code to be run twice (closes #10408) [DHH]

  • Property svn:executable set to *
Line 
1 #!/usr/bin/env ruby
2
3 VERSION  = ARGV.first
4 PACKAGES = %w(activesupport activerecord actionpack actionmailer activeresource)
5
6 # Checkout source
7 `rm -rf release && svn export http://dev.rubyonrails.org/svn/rails/trunk release`
8
9 # Create Rails packages
10 `cd release/railties && rake template=jamis package`
11
12 # Upload documentation
13 `cd release/rails/doc/api && scp -r * davidhh@wrath.rubyonrails.com:public_html/api`
14
15 # Upload packages
16 (PACKAGES + %w(railties)).each do |p|
17   `cd release/#{p} && echo "Releasing #{p}" && rake release`
18 end
19
20 # Upload rails tgz/zip
21 `rubyforge add_release rails rails 'REL #{VERSION}' release/rails-#{VERSION}.tgz`
22 `rubyforge add_release rails rails 'REL #{VERSION}' release/rails-#{VERSION}.zip`
23
24 # Create SVN tag
25 puts "Remember to create SVN tag"
Note: See TracBrowser for help on using the browser.