You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jo...@apache.org on 2010/06/10 20:56:57 UTC

svn commit: r953420 - /qpid/trunk/qpid/doc/book/build-book.sh

Author: jonathan
Date: Thu Jun 10 18:56:57 2010
New Revision: 953420

URL: http://svn.apache.org/viewvc?rev=953420&view=rev
Log:
Improved formatting.

Modified:
    qpid/trunk/qpid/doc/book/build-book.sh

Modified: qpid/trunk/qpid/doc/book/build-book.sh
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/doc/book/build-book.sh?rev=953420&r1=953419&r2=953420&view=diff
==============================================================================
--- qpid/trunk/qpid/doc/book/build-book.sh (original)
+++ qpid/trunk/qpid/doc/book/build-book.sh Thu Jun 10 18:56:57 2010
@@ -11,16 +11,25 @@
 #
 ########################################################################
 
-rm -rf build
-mkdir -p build
-mkdir -p pdf
+rm -rf build/$1
+mkdir -p build/$1
+mkdir -p build/$1/html-single
+mkdir -p build/$1/html
+mkdir -p build/$1/pdf
+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 /usr/share/sgml/docbook/xsl-stylesheets-1.75.2/html/docbook.xsl src/$1.xml >build/$1/html-single/$1.html
 
-# 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 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 /usr/share/sgml/docbook/xsl-stylesheets-1.75.2/html/chunk.xsl $INFILE
+popd
 
 # 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
+xsltproc --xinclude --stringparam  section.autolabel 1  --stringparam  callout.graphics 0  --stringparam  callout.unicode 0 /usr/share/sgml/docbook/xsl-stylesheets-1.75.2/fo/docbook.xsl src/$1.xml >build/$1/pdf/$1.fo
 
 # Use Apache FOP to create the PDF
-fop build/$1.fo pdf/$1.pdf
+fop build/$1/pdf/$1.fo build/$1/pdf/$1.pdf



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org