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
This commit is contained in:
parent
bf9b90a908
commit
12ff2f76da
|
@ -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 ------------------------------------------------------
|
||||
|
||||
|
|
|
@ -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 ----------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue