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/03/18 00:00:46 UTC
svn commit: r924545 - in /qpid/trunk/qpid/doc/book: Makefile build.sh
docbook-xsl/ docbook/ lib/
Author: jonathan
Date: Wed Mar 17 23:00:46 2010
New Revision: 924545
URL: http://svn.apache.org/viewvc?rev=924545&view=rev
Log:
Replaced ant-based build system with a simple Makefile. To build documents, you must install Apache Ant >= 0.95, the Docbook XSLT stylesheets, xsltproc, and xmllint.
Added:
qpid/trunk/qpid/doc/book/Makefile
Removed:
qpid/trunk/qpid/doc/book/docbook/
qpid/trunk/qpid/doc/book/docbook-xsl/
qpid/trunk/qpid/doc/book/lib/
Modified:
qpid/trunk/qpid/doc/book/build.sh
Added: qpid/trunk/qpid/doc/book/Makefile
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/doc/book/Makefile?rev=924545&view=auto
==============================================================================
--- qpid/trunk/qpid/doc/book/Makefile (added)
+++ qpid/trunk/qpid/doc/book/Makefile Wed Mar 17 23:00:46 2010
@@ -0,0 +1,39 @@
+###############################################################
+#
+# This Makefile requires the following:
+#
+# Apache FOP, version 0.95 or higher
+# Docbook 4.5
+# Docbook XSL stylesheets - tested with xsl-stylesheets-1.75.2
+# xsltproc
+# xmllint
+#
+
+DOCBOOKXSL = /usr/share/sgml/docbook/xsl-stylesheets-1.75.2/
+
+out/pdf/qpid-book.pdf: build/qpid-book.fo
+ mkdir -p out/pdf
+ fop build/qpid-book.fo out/pdf/qpid-book.pdf
+
+build/qpid-book.fo: build/qpid-book.xml
+ xsltproc ${DOCBOOKXSL}/fo/docbook.xsl build/qpid-book.xml >build/qpid-book.fo
+
+build/qpid-book.xml:
+ mkdir -p build
+ xmllint --xinclude src/Book.xml >build/qpid-book.xml
+
+out/html/index.html: build/qpid-book.xml
+ mkdir -p out/html
+ cd out/html; xsltproc ${DOCBOOKXSL}/html/chunk.xsl ../../build/qpid-book.xml
+
+pdf: out/pdf/qpid-book.pdf
+
+html: out/html/index.html
+
+all: pdf html
+
+clean:
+ rm -rf build
+ rm -rf out
+
+
\ No newline at end of file
Modified: qpid/trunk/qpid/doc/book/build.sh
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/doc/book/build.sh?rev=924545&r1=924544&r2=924545&view=diff
==============================================================================
--- qpid/trunk/qpid/doc/book/build.sh (original)
+++ qpid/trunk/qpid/doc/book/build.sh Wed Mar 17 23:00:46 2010
@@ -4,7 +4,7 @@
#
# Build a PDF from Docbook XML
#
-# This will be replaced by an ANT file soon.
+# The Makefile is cleaner ....
#
########################################################################
@@ -13,10 +13,10 @@ mkdir -p build
mkdir -p pdf
# Assemble all documents using XInclude
-xmllint --xinclude src/Book.xml >build/book.xml
+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/book.xml >build/book.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/book.fo pdf/qpid-book.pdf
+fop build/qpid-book.fo pdf/qpid-book.pdf
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org