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 | f5d43163a29818f65ec5d39afd8b823ebd4fd26a (patch) | |
| tree | d0fdac710b4fd6f1983fe4b8c7fb4d836cbeb929 /qpid | |
| parent | 90f564b2ff7d7c53256fbcb04aaac292faf05702 (diff) | |
| download | qpid-python-f5d43163a29818f65ec5d39afd8b823ebd4fd26a.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@942122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
| -rw-r--r-- | qpid/doc/book/build-book.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/qpid/doc/book/build-book.sh b/qpid/doc/book/build-book.sh new file mode 100644 index 0000000000..4beeb62779 --- /dev/null +++ b/qpid/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 |
