[pypy-svn] r39039 - pypy/release/0.99.x/pypy/tool
ac at codespeak.net
ac at codespeak.net
Fri Feb 16 18:55:38 CET 2007
Author: ac
Date: Fri Feb 16 18:55:37 2007
New Revision: 39039
Modified:
pypy/release/0.99.x/pypy/tool/makerelease.py
Log:
Add code for generating html files.
Modified: pypy/release/0.99.x/pypy/tool/makerelease.py
==============================================================================
--- pypy/release/0.99.x/pypy/tool/makerelease.py (original)
+++ pypy/release/0.99.x/pypy/tool/makerelease.py Fri Feb 16 18:55:37 2007
@@ -70,6 +70,18 @@
%(lineend, BASEURL, target))
assert target.check(dir=1)
+def build_html(target):
+ docdir = target.join('pypy').join('doc')
+ old = docdir.chdir()
+ try:
+ # Generate the html files.
+ out = cexec("python2.4 ../test_all.py")
+ # Remove any .pyc files created in the process
+ target.chdir()
+ out = cexec("find . -name '*.pyc' -print0 | xargs -0 -r rm")
+ finally:
+ old.chdir()
+
if __name__ == '__main__':
argc = len(py.std.sys.argv)
if argc <= 1:
@@ -80,6 +92,7 @@
target = tmpdir.join(ver)
forced_export(BASEURL, target, lineend="LF")
+ build_html(target)
target_targz = maketargz(target)
assert target_targz.check(file=1)
copydownload(target_targz)
@@ -89,6 +102,7 @@
copydownload(target_tarbzip)
forced_export(BASEURL, target, lineend="CRLF")
+ build_html(target)
target_zip = makezip(target)
assert target_zip.check(file=1)
copydownload(target_zip)
More information about the Pypy-commit
mailing list