diff options
Diffstat (limited to 'release.rb')
-rwxr-xr-x | release.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/release.rb b/release.rb index 1b8e0a75c4..336f3ff2a7 100755 --- a/release.rb +++ b/release.rb @@ -1,12 +1,8 @@ #!/usr/local/bin/ruby +VERSION = ARGV.first PACKAGES = %w( activesupport activerecord actionpack actionmailer actionwebservice ) -unless ruby_forge_password = ARGV.first - print "rubyforge.org's password: " - ruby_forge_password = STDIN.gets.chomp -end - # Checkout source `rm -rf release && svn export http://dev.rubyonrails.org/svn/rails/trunk release` @@ -14,16 +10,16 @@ end `cd release/railties && rake template=jamis package` # Upload documentation -`cd release/rails/doc/api && scp -r * davidhh@wrath.rubyonrails.com:public_html/rails` -PACKAGES.each do |p| - `cd release/#{p} && echo "Publishing documentation for #{p}" && rake template=jamis pdoc` -end +`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}" && RUBY_FORGE_PASSWORD=#{ruby_forge_password} rake release` + `cd release/#{p} && echo "Releasing #{p}" && rake release` end # Upload rails tgz/zip +`rubyforge add_release rails rails 'REL #{VERSION}' rails-#{VERSION}.tgz` +`rubyforge add_release rails rails 'REL #{VERSION}' rails-#{VERSION}.zip` # Create SVN tag +puts "Remeber to create SVN tag"
\ No newline at end of file |