GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
technoweenie (author)
Mon Mar 27 20:01:17 -0800 2006
commit  2597bd6970c394445e7256c1fb9058538422665b
tree    97c7607aab46d33b4e83ebf58d5b488444aaa634
parent  f28d6195347bc2c3c29e49d9684e3f4f5137bed6
rails / release.rb
100755 31 lines (22 sloc) 0.889 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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
`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/rails`
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
`cd ..; svn cp trunk tags/rel_#{ARGV[1]}`