You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2012/11/07 23:01:06 UTC

svn commit: r1406838 - /buildr/trunk/rakelib/doc.rake

Author: donaldp
Date: Wed Nov  7 22:01:05 2012
New Revision: 1406838

URL: http://svn.apache.org/viewvc?rev=1406838&view=rev
Log:
Rollback removal of publish-doc task as there is some release specific documentation uploaded via publish

Modified:
    buildr/trunk/rakelib/doc.rake

Modified: buildr/trunk/rakelib/doc.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/doc.rake?rev=1406838&r1=1406837&r2=1406838&view=diff
==============================================================================
--- buildr/trunk/rakelib/doc.rake (original)
+++ buildr/trunk/rakelib/doc.rake Wed Nov  7 22:01:05 2012
@@ -90,7 +90,7 @@ ForceType 'text/plain; charset=UTF-8'
 end
 
 # Publish prerequisites to Web site.
-desc "Publish web site "
+desc "Publish complete web site"
 task 'publish' => 'site' do
   target = "people.apache.org:/www/#{spec.name}.apache.org/"
   puts "Uploading new site to #{target} ..."
@@ -99,6 +99,17 @@ task 'publish' => 'site' do
   puts 'Done'
 end
 
+# Update HTML + PDF documentation (but not rdoc, changelog etc.)
+desc "Publish non-release specific documentation to web site"
+task 'publish-doc' => %w(buildr.pdf _site) do
+  cp 'buildr.pdf', '_site'
+  target = "people.apache.org:/www/#{spec.name}.apache.org/"
+  puts "Uploading new site to #{target} ..."
+  sh 'rsync', '--progress', '--recursive', '_site/', target # Note: no --delete
+  sh 'ssh', 'people.apache.org', 'chmod', '-f', '-R', 'g+w', "/www/#{spec.name}.apache.org/*"
+  puts 'Done'
+end
+
 task 'clobber' do
   rm_rf '_site'
   rm_f 'buildr.pdf'