changeset 851:660d22033155

Use a target directory instead of build number.
author Martin Geisler <mg@daimi.au.dk>
date Sun, 27 Jul 2008 22:00:21 +0200
parents 6d8e69b5ec1a
children dca8bd3398ab
files run.py
diffstat 1 files changed, 8 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/run.py	Sun Jul 27 17:55:13 2008 +0200
+++ b/run.py	Sun Jul 27 22:00:21 2008 +0200
@@ -103,12 +103,12 @@
     # Generate HTML docs in doc/html.
     if isdir('doc/html'):
         shutil.rmtree('doc/html')
-    sphinx('doc')
+    sphinx('doc/html')
 
     # Generate API docs in doc/api.
     if isdir('doc/api'):
         shutil.rmtree('doc/api')
-    epydoc('doc')
+    epydoc('doc/api')
 
     # Pack everything up with Distutils.
     execute(["python", "setup.py", "sdist", "--force-manifest",
@@ -117,25 +117,22 @@
     # Generate binary Windows installer (which has no docs, though).
     execute(["python", "setup.py", "bdist", "--formats=wininst"])
 
-@command('epydoc', 'build')
-def epydoc(build):
+@command('epydoc', 'target')
+def epydoc(target):
     """Generate API documentation using epydoc."""
-    target = "%s/api" % build
     ensure_dir(target)
     execute(["epydoc", "-vv", "--config", "epydoc.conf"],
             {'VIFF_NO_WRAP': 'YES', 'target': target})
 
-@command('sphinx', 'build')
-def sphinx(build):
+@command('sphinx', 'target')
+def sphinx(target):
     """Generate VIFF manual using Sphinx."""
-    target = "%s/html" % build
     ensure_dir(target)
     execute(["sphinx-build", "-N", "doc", target])
 
-@command('coverage', 'build')
-def coverage(build):
+@command('coverage', 'target')
+def coverage(target):
     """Run Trial unit tests and collect coverage data."""
-    target = "%s/coverage" % build
     ensure_dir(target)
     trial = find_program("trial")
     execute(["trace2html.py", "-o", target, "-w", "viff", "-b", "viff.test",