diff options
Diffstat (limited to 'railties')
-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 |