qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonat...@apache.org
Subject svn commit: r942122 - /qpid/trunk/qpid/doc/book/build-book.sh
Date Fri, 07 May 2010 15:24:10 GMT
Author: jonathan
Date: Fri May  7 15:24:09 2010
New Revision: 942122

URL: http://svn.apache.org/viewvc?rev=942122&view=rev
Log:
Used to create any standalone book, by name. I created this to format Programming in Apache
Qpid as a book.

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

Added: qpid/trunk/qpid/doc/book/build-book.sh
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/doc/book/build-book.sh?rev=942122&view=auto
==============================================================================
--- qpid/trunk/qpid/doc/book/build-book.sh (added)
+++ qpid/trunk/qpid/doc/book/build-book.sh Fri May  7 15:24:09 2010
@@ -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



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


Mime
View raw message