diff options
| author | Jonathan Robie <jonathan@apache.org> | 2010-05-07 15:24:09 +0000 |
|---|---|---|
| committer | Jonathan Robie <jonathan@apache.org> | 2010-05-07 15:24:09 +0000 |
| commit | d2f00f80972b0ba635fe94a74be704830a4f8f28 (patch) | |
| tree | 108a44a839a97b8df8cca0a29f4cbcb54b1f2f6e /doc | |
| parent | dc1d94aab8c25dae51ef05f6e95916bd56bbb892 (diff) | |
| download | qpid-python-d2f00f80972b0ba635fe94a74be704830a4f8f28.tar.gz | |
Used to create any standalone book, by name. I created this to format Programming in Apache Qpid as a book.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/book/build-book.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/book/build-book.sh b/doc/book/build-book.sh new file mode 100644 index 0000000000..4beeb62779 --- /dev/null +++ b/doc/book/build-book.sh @@ -0,0 +1,26 @@ +#!/bin/bash -ex + +######################################################################## +# +# Build a PDF and HTML for a single chapter or section +# +# Specify the name of the XML file on the command line, omitting +# the file extension, e.g.: +# +# $ ./build-chapter.sh src/High-Level-API +# +######################################################################## + +rm -rf build +mkdir -p build +mkdir -p pdf + + +# Create the .html +xsltproc --stringparam section.autolabel 1 --stringparam generate.section.toc.level 0 --stringparam generate.chapter.toc 0 --stringparam section.label.includes.component.label 1 /usr/share/sgml/docbook/xsl-stylesheets-1.75.2/html/docbook.xsl src/$1.xml >build/$1.html + +# Create the .fo +xsltproc --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 /usr/share/sgml/docbook/xsl-stylesheets-1.75.2/fo/docbook.xsl src/$1.xml >build/$1.fo + +# Use Apache FOP to create the PDF +fop build/$1.fo pdf/$1.pdf |
