Преглед на файлове

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 години
родител
ревизия
955c65ffea
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  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