viff

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 diff
     1.1 --- a/run.py	Sun Jul 27 17:55:13 2008 +0200
     1.2 +++ b/run.py	Sun Jul 27 22:00:21 2008 +0200
     1.3 @@ -103,12 +103,12 @@
     1.4      # Generate HTML docs in doc/html.
     1.5      if isdir('doc/html'):
     1.6          shutil.rmtree('doc/html')
     1.7 -    sphinx('doc')
     1.8 +    sphinx('doc/html')
     1.9  
    1.10      # Generate API docs in doc/api.
    1.11      if isdir('doc/api'):
    1.12          shutil.rmtree('doc/api')
    1.13 -    epydoc('doc')
    1.14 +    epydoc('doc/api')
    1.15  
    1.16      # Pack everything up with Distutils.
    1.17      execute(["python", "setup.py", "sdist", "--force-manifest",
    1.18 @@ -117,25 +117,22 @@
    1.19      # Generate binary Windows installer (which has no docs, though).
    1.20      execute(["python", "setup.py", "bdist", "--formats=wininst"])
    1.21  
    1.22 -@command('epydoc', 'build')
    1.23 -def epydoc(build):
    1.24 +@command('epydoc', 'target')
    1.25 +def epydoc(target):
    1.26      """Generate API documentation using epydoc."""
    1.27 -    target = "%s/api" % build
    1.28      ensure_dir(target)
    1.29      execute(["epydoc", "-vv", "--config", "epydoc.conf"],
    1.30              {'VIFF_NO_WRAP': 'YES', 'target': target})
    1.31  
    1.32 -@command('sphinx', 'build')
    1.33 -def sphinx(build):
    1.34 +@command('sphinx', 'target')
    1.35 +def sphinx(target):
    1.36      """Generate VIFF manual using Sphinx."""
    1.37 -    target = "%s/html" % build
    1.38      ensure_dir(target)
    1.39      execute(["sphinx-build", "-N", "doc", target])
    1.40  
    1.41 -@command('coverage', 'build')
    1.42 -def coverage(build):
    1.43 +@command('coverage', 'target')
    1.44 +def coverage(target):
    1.45      """Run Trial unit tests and collect coverage data."""
    1.46 -    target = "%s/coverage" % build
    1.47      ensure_dir(target)
    1.48      trial = find_program("trial")
    1.49      execute(["trace2html.py", "-o", target, "-w", "viff", "-b", "viff.test",