Browse Source

Use rsync instead of mv.

This keeps the Sphinx build files in place, so incremental builds are a *lot*
faster.  To force a full rebuild, use:
	paver clean_docs html
Vincent Driessen 15 years ago
parent
commit
955c65ffea
1 changed files with 2 additions and 3 deletions
  1. 2 3
      pavement.py

+ 2 - 3
pavement.py

@@ -16,12 +16,11 @@ def clean_docs(options):
 
 
 @task
-@needs("clean_docs", "paver.doctools.html")
+@needs("paver.doctools.html")
 def html(options):
     destdir = path("Documentation")
-    destdir.rmtree()
     builtdocs = sphinx_builddir(options)
-    builtdocs.move(destdir)
+    sh("rsync -az %s/ %s" % (builtdocs, destdir))
 
 
 @task