diff options
| author | Jonathan Robie <jonathan@apache.org> | 2010-04-22 18:35:30 +0000 |
|---|---|---|
| committer | Jonathan Robie <jonathan@apache.org> | 2010-04-22 18:35:30 +0000 |
| commit | cae1e225016be581aac44af49b6e33bf5e37710f (patch) | |
| tree | 3c6f8e7fdcafd44f944c71879b83fb6f438e93d0 | |
| parent | 9c475fa9fa2edb4f3f22d1a0ab6e23ab24ed89f7 (diff) | |
| download | qpid-python-cae1e225016be581aac44af49b6e33bf5e37710f.tar.gz | |
Shell script to build a single chapter or section in PDF and HTML.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@937000 13f79535-47bb-0310-9956-ffa450edef68
| -rwxr-xr-x | qpid/doc/book/build-chapter.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/qpid/doc/book/build-chapter.sh b/qpid/doc/book/build-chapter.sh new file mode 100755 index 0000000000..f4fb94c57a --- /dev/null +++ b/qpid/doc/book/build-chapter.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 /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 /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 |
