aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-06 11:30:48 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-06 11:30:48 +0000
commitbd11ca377540c15c9dda6f943e14234e10e37f31 (patch)
tree0e68c9743b58434219eb094bc292599aec39950f /railties/Rakefile
parent212cc3845a1eab76e55c2ddfc93cb3fc77b9c92b (diff)
downloadrails-bd11ca377540c15c9dda6f943e14234e10e37f31.tar.gz
rails-bd11ca377540c15c9dda6f943e14234e10e37f31.tar.bz2
rails-bd11ca377540c15c9dda6f943e14234e10e37f31.zip
Keep JS files locally
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 5ded004a4b..f2ed7d9022 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -61,16 +61,13 @@ end
# Get external spinoffs -------------------------------------------------------------------
-task :update_scriptaculous do
- system("svn export --force http://dev.rubyonrails.org/svn/rails/spinoffs/scriptaculous/src/ #{File.dirname(__FILE__)}/html/javascripts")
-end
-
-task :update_prototype do
- system("svn export --force http://dev.rubyonrails.org/svn/rails/trunk/actionpack/lib/action_view/helpers/javascripts/prototype.js #{File.dirname(__FILE__)}/html/javascripts/prototype.js")
-end
-
desc "Updates railties to the latest version of the javascript spinoffs"
-task :update_js => [:update_scriptaculous, :update_prototype]
+task :update_js do
+ for js in %w( prototype controls dragdrop effects )
+ rm "html/javascripts/#{js}.js"
+ cp "./../actionpack/lib/action_view/helpers/javascripts/#{js}.js", "html/javascripts"
+ end
+end
# Make directory structure ----------------------------------------------------------------