Browse files

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
  • Loading branch information...
1 parent bf9b90a commit 12ff2f76da52473af524a4c4167d0f047298bd72 @dhh dhh committed Jul 2, 2005
Showing with 20 additions and 0 deletions.
  1. +8 −0 actionpack/Rakefile
  2. +12 −0 railties/Rakefile
View
8 actionpack/Rakefile
@@ -104,6 +104,14 @@ task :lines do
puts "Total: Lines #{total_lines}, LOC #{total_codelines}"
end
+# Publishing ------------------------------------------------------
+
+task :update_scriptaculous do
+ system("svn export --force http://dev.rubyonrails.org/svn/rails/spinoffs/scriptaculous/src/ #{File.dirname(__FILE__)}/lib/action_view/helpers/javascripts/")
+end
+
+desc "Updates actionpack to the latest version of the javascript spinoffs"
+task :update_js => [:update_scriptaculous]
# Publishing ------------------------------------------------------
View
12 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 ----------------------------------------------------------------

0 comments on commit 12ff2f7

Please sign in to comment.