aboutsummaryrefslogblamecommitdiffstats
path: root/release.rb
blob: a019a52e4f1faff844bf17f794a6cb044caf9428 (plain) (tree)
1
2
3
4
5
6
7

                     
                     
                                                                                
 
                 
                                                                                 




                                                    
                                                                                    


                                      
                                                            


                      

                                                                                 

                
                                 
#!/usr/local/bin/ruby

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

# 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}' release/rails-#{VERSION}.tgz`
`rubyforge add_release rails rails 'REL #{VERSION}' release/rails-#{VERSION}.zip`

# Create SVN tag
puts "Remember to create SVN tag"