diff options
author | W. Trevor King <wking@tremily.us> | 2012-11-12 11:54:47 -0500 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2012-11-12 11:59:29 -0500 |
commit | 8726ab9b7169bea404032a3035563f1144582041 (patch) | |
tree | 9fa113143c37b08b7f9fe875b20faf1f3ebe257c | |
parent | ea9cc6e140481a3b804d464f1f49b1b57952fdcb (diff) | |
download | bugseverywhere-8726ab9b7169bea404032a3035563f1144582041.tar.gz |
release.py: build HTML docs when cutting releases
-rwxr-xr-x | release.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -130,6 +130,12 @@ def make_id_cache(): """ invoke([sys.executable, './be', 'list']) +def make_html_docs(docdir): + """Generate docs so users won't need to install Sphinx, etc. + """ + print('generate HTML docs in {}'.format(docdir)) + status,stdout,stderr = invoke(['make', 'dirhtml'], cwd=docdir) + def create_tarball(tag): release_name='be-%s' % tag export_dir = release_name @@ -142,6 +148,7 @@ def create_tarball(tag): os.path.join(export_dir, 'libbe', '_version.py')) make_changelog(os.path.join(export_dir, 'ChangeLog'), tag) make_id_cache() + make_html_docs(os.path.join(export_dir, 'doc')) print 'copy .be/id-cache to %s/.be/id-cache' % export_dir shutil.copy(os.path.join('.be', 'id-cache'), os.path.join(export_dir, '.be', 'id-cache')) |