aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-02 06:23:35 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-02 06:23:35 +0000
commit12ff2f76da52473af524a4c4167d0f047298bd72 (patch)
tree476a7991dd32e3d04e59e43c2b8a92b8c94a745c /railties/Rakefile
parentbf9b90a908235c9d0ce0c0466e3808619803bad8 (diff)
downloadrails-12ff2f76da52473af524a4c4167d0f047298bd72.tar.gz
rails-12ff2f76da52473af524a4c4167d0f047298bd72.tar.bz2
rails-12ff2f76da52473af524a4c4167d0f047298bd72.zip
Rake task to update spin off libraries #1514 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1599 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 4f090dc889..28cc23d84b 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -59,6 +59,18 @@ task :clean do
rm_rf PKG_DESTINATION
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]
# Make directory structure ----------------------------------------------------------------