diff options
Diffstat (limited to 'qpid/doc/book/build-book.sh')
-rwxr-xr-x | qpid/doc/book/build-book.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/qpid/doc/book/build-book.sh b/qpid/doc/book/build-book.sh index 74a2ec963d..46192907e6 100755 --- a/qpid/doc/book/build-book.sh +++ b/qpid/doc/book/build-book.sh @@ -29,6 +29,12 @@ # ######################################################################## +# DOCBOOK XSL STYLESHEET LOCATION +# Fedora, RHEL: +DOCBOOK_XSL=/usr/share/sgml/docbook/xsl-stylesheets +# Ubuntu: +# DOCBOOK_XSL=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh + rm -rf build/$1 mkdir -p build/$1 mkdir -p build/$1/html-single @@ -38,16 +44,16 @@ cp -r src/images build/$1/html-single cp -r src/images build/$1/html # Create single-page .html -xsltproc --xinclude --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl src/$1.xml >build/$1/html-single/$1.html +xsltproc --xinclude --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 ${DOCBOOK_XSL}/html/docbook.xsl src/$1.xml >build/$1/html-single/$1.html # Create chunked .html INFILE=$(readlink -f src/$1.xml) pushd build/$1/html -xsltproc --xinclude --stringparam chunk.section.depth 1 --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl $INFILE +xsltproc --xinclude --stringparam chunk.section.depth 1 --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 ${DOCBOOK_XSL}/html/chunk.xsl $INFILE popd # Create the .fo -xsltproc --xinclude --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 /usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl src/$1.xml >build/$1/pdf/$1.fo +xsltproc --xinclude --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 ${DOCBOOK_XSL}/fo/docbook.xsl src/$1.xml >build/$1/pdf/$1.fo # Use Apache FOP to create the PDF fop build/$1/pdf/$1.fo build/$1/pdf/$1.pdf |