Permalink
Browse files

When freezing to edge, we should also export railties/bin and railtie…

…s/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
  • Loading branch information...
1 parent 631181c commit 9fcbd37d9c68f252ef922ed88135c7ad63cfa752 Scott Barron committed Mar 1, 2006
Showing with 10 additions and 1 deletion.
  1. +10 −1 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

0 comments on commit 9fcbd37

Please sign in to comment.