[svnbook commit] r1879 - trunk/src/tools
maxb
svnbook-dev at red-bean.com
Mon Dec 5 10:03:57 CST 2005
Author: maxb
Date: Mon Dec 5 10:03:55 2005
New Revision: 1879
Modified:
trunk/src/tools/book-dist.py
trunk/src/tools/build-nightlies
Log:
* src/tools/book-dist.py: Do not check for JAVA_HOME being set when building
the PDF. I'm building a PDF right now, and I don't have JAVA_HOME set.
* src/tools/build-nightlies: Build nightly PDFs too!
Modified: trunk/src/tools/book-dist.py
==============================================================================
--- trunk/src/tools/book-dist.py (original)
+++ trunk/src/tools/book-dist.py Mon Dec 5 10:03:55 2005
@@ -21,7 +21,7 @@
Options:
--html: Make the single-page HTML book
--html-chunk: Make the chunked HTML book
- --pdf: Make the PDF book (requires JAVA_HOME environment variable)
+ --pdf: Make the PDF book
--name: The base name of the tarball, and top-level tar directory
""" % (os.path.basename(sys.argv[0])))
sys.exit(err_msg and 1 or 0)
@@ -49,9 +49,6 @@
if opt == '--name':
name = arg
- if pdf and not os.getenv('JAVA_HOME'):
- usage('JAVA_HOME is not set.')
-
if os.path.basename(name) != name:
usage('Name "%s" is not a single path component' % (name))
Modified: trunk/src/tools/build-nightlies
==============================================================================
--- trunk/src/tools/build-nightlies (original)
+++ trunk/src/tools/build-nightlies Mon Dec 5 10:03:55 2005
@@ -43,7 +43,7 @@
tarball_path = os.path.join(locale_dir, tarball_name)
try:
os.chdir(locale_dir)
- os.system('../tools/book-dist.py --html --html-chunk ' + \
+ os.system('../tools/book-dist.py --html --html-chunk --pdf ' + \
'--name="%s"' % (tarball_base_name))
os.chdir(DROPSPOT)
if os.path.isdir(locale):
@@ -75,7 +75,8 @@
fp.write("""<dt>%s</dt>
<dd>[<a href="%s/svn-book.html">single-page HTML</a>]</dd>
<dd>[<a href="%s/index.html">multi-page HTML</a>]</dd>
-""" % (string.upper(locale), locale, locale))
+<dd>[<a href="%s/svn-book.pdf">PDF</a>]</dd>
+""" % (string.upper(locale), locale, locale, locale))
fp.write("""</dl>
</ul>
</body>
More information about the svnbook-dev
mailing list