diff options
Diffstat (limited to 'qpid/doc/book/build.sh')
-rwxr-xr-x | qpid/doc/book/build.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qpid/doc/book/build.sh b/qpid/doc/book/build.sh new file mode 100755 index 0000000000..fd78ef79e8 --- /dev/null +++ b/qpid/doc/book/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash -ex + +######################################################################## +# +# Build a PDF from Docbook XML +# +# The Makefile is cleaner .... +# +######################################################################## + +rm -rf build +mkdir -p build +mkdir -p pdf + +# Assemble all documents using XInclude +xmllint --xinclude src/Book.xml >build/qpid-book.xml + +# Create the .fo +xsltproc /usr/share/sgml/docbook/xsl-stylesheets-1.75.2/fo/docbook.xsl build/qpid-book.xml >build/qpid-book.fo + +# Use Apache FOP to create the PDF +fop build/qpid-book.fo pdf/qpid-book.pdf |