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

root/tags/rel_1-1-4/release.rb

Revision 4496, 0.8 kB (checked in by david, 2 years ago)

Use real date

  • Property svn:executable set to *
Line 
1 #!/usr/local/bin/ruby
2
3 VERSION  = ARGV.first
4 PACKAGES = %w( activesupport activerecord actionpack actionmailer actionwebservice )
5
6 # Checkout source
7 `rm -rf release && svn export http://dev.rubyonrails.org/svn/rails/branches/stable 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}' rails-#{VERSION}.tgz`
22 `rubyforge add_release rails rails 'REL #{VERSION}' rails-#{VERSION}.zip`
23
24 # Create SVN tag
25 puts "Remeber to create SVN tag"
Note: See TracBrowser for help on using the browser.