diff options
author | Scott Barron <scott@elitists.net> | 2006-03-01 16:02:50 +0000 |
---|---|---|
committer | Scott Barron <scott@elitists.net> | 2006-03-01 16:02:50 +0000 |
commit | 9fcbd37d9c68f252ef922ed88135c7ad63cfa752 (patch) | |
tree | e56d8730dee5267b069ed04af319dd57e7245ee1 | |
parent | 631181ca18d2a21c3e72039b0c7f6c5a0b2fc05a (diff) | |
download | rails-9fcbd37d9c68f252ef922ed88135c7ad63cfa752.tar.gz rails-9fcbd37d9c68f252ef922ed88135c7ad63cfa752.tar.bz2 rails-9fcbd37d9c68f252ef922ed88135c7ad63cfa752.zip |
When freezing to edge, we should also export railties/bin and railties/html so
that rails:update:scripts and rails:update:javascripts still function.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/lib/tasks/framework.rake | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/railties/lib/tasks/framework.rake b/railties/lib/tasks/framework.rake index 346d7a7e51..1defb2e405 100644 --- a/railties/lib/tasks/framework.rake +++ b/railties/lib/tasks/framework.rake @@ -42,7 +42,16 @@ namespace :rails do mkdir_p "vendor/rails" revision_switch = ENV['REVISION'] ? " -r #{ENV['REVISION']}" : '' - for framework in %w( railties actionpack activerecord actionmailer activesupport actionwebservice ) + + # Railties needs bin/ and html/ in order for update:scripts and + # update:javascripts to function properly + mkdir_p "vendor/rails/railties" + system "svn export http://dev.rubyonrails.org/svn/rails/trunk/railties/lib vendor/rails/railties/lib #{revision_switch}" + system "svn export http://dev.rubyonrails.org/svn/rails/trunk/railties/bin vendor/rails/railties/bin #{revision_switch}" + system "svn export http://dev.rubyonrails.org/svn/rails/trunk/railties/html vendor/rails/railties/html #{revision_switch}" + + # The rest of the frameworks really just need lib/ + for framework in %w( actionpack activerecord actionmailer activesupport actionwebservice ) mkdir_p "vendor/rails/#{framework}" system "svn export http://dev.rubyonrails.org/svn/rails/trunk/#{framework}/lib vendor/rails/#{framework}/lib #{revision_switch}" end |