2005-03-27 10:07:27 -05:00
|
|
|
#!/usr/local/bin/ruby
|
|
|
|
|
|
|
|
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
|
2005-07-07 02:39:48 -04:00
|
|
|
`rm -rf release && svn export http://dev.rubyonrails.org/svn/rails/trunk release`
|
2005-03-27 10:07:27 -05:00
|
|
|
|
|
|
|
# Create Rails packages
|
|
|
|
`cd release/railties && rake template=jamis package`
|
|
|
|
|
|
|
|
# Upload documentation
|
2005-04-19 00:30:52 -04:00
|
|
|
`cd release/rails/doc/api && scp -r * davidhh@wrath.rubyonrails.com:public_html/rails`
|
2005-03-27 10:07:27 -05:00
|
|
|
PACKAGES.each do |p|
|
|
|
|
`cd release/#{p} && echo "Publishing documentation for #{p}" && rake template=jamis pdoc`
|
|
|
|
end
|
|
|
|
|
|
|
|
# Upload packages
|
|
|
|
(PACKAGES + %w(railties)).each do |p|
|
|
|
|
`cd release/#{p} && echo "Releasing #{p}" && RUBY_FORGE_PASSWORD=#{ruby_forge_password} rake release`
|
|
|
|
end
|
|
|
|
|
|
|
|
# Upload rails tgz/zip
|
|
|
|
|
|
|
|
# Create SVN tag
|
2005-07-07 02:39:48 -04:00
|
|
|
`cd ..; svn cp trunk tags/rel_#{ARGV[1]}`
|