[Scummvm-cvs-logs] SF.net SVN: scummvm: [25020] docs/trunk/docbook
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Jan 6 03:00:42 CET 2007
Revision: 25020
http://scummvm.svn.sourceforge.net/scummvm/?rev=25020&view=rev
Author: fingolfin
Date: 2007-01-05 18:00:41 -0800 (Fri, 05 Jan 2007)
Log Message:
-----------
Added a Makefile that uses dblatex instead of fop, and renamed the old Makefile to Makefile.openjade
Added Paths:
-----------
docs/trunk/docbook/Makefile.dblatex
docs/trunk/docbook/Makefile.openjade
Removed Paths:
-------------
docs/trunk/docbook/Makefile
Deleted: docs/trunk/docbook/Makefile
===================================================================
--- docs/trunk/docbook/Makefile 2007-01-06 01:51:04 UTC (rev 25019)
+++ docs/trunk/docbook/Makefile 2007-01-06 02:00:41 UTC (rev 25020)
@@ -1,45 +0,0 @@
-include Makefile.common
-
-#
-# Try various potential locations for the DCL file, picking the
-# first one we find.
-#
-DCL_CANDIDATES = \
- $(strip $(foreach TMP_DCL, \
- /usr/share/sgml/xml.dcl \
- /usr/share/sgml/declaration/xml.dcl \
- /sw/share/sgml/openjade-1.3.2/pubtext/xml.dcl, \
- $(shell test -f $(TMP_DCL) && echo $(TMP_DCL))))
-DCL := --cat docbook-xml-4.2/docbook.cat -l $(firstword $(DCL_CANDIDATES))
-
-
-#
-# The following rules convert our DocBook XML into various target formats
-# with the help of the docbook-utils package. That in turn uses jadetex.
-# Note that the plain text version apparently is simply made by using a text
-# based web client (links, lynx, w3m, ...) on the single page HTML version.
-#
-
-%.pdf: %.xml
- docbook2pdf $(DCL) $<
-
-%.txt: %.xml
- docbook2txt $(DCL) $<
-
-%/index.html: %.xml
- mkdir -p $*
- docbook2html $(DCL) -o $* $<
- tidy -qm $*/*.html || true
-
-%.html: %.xml
- docbook2html $(DCL) --nochunks $<
- tidy -qm $@ || true
-
-
-# Special rule for faq.inc:
-# Remove everything before <div class="qandaset">
-# and at the end of the file remove
-# </body>
-# </html>
-faq.inc: faq.html
- ./faq_make_inc.pl < $< > $@
Copied: docs/trunk/docbook/Makefile.dblatex (from rev 25019, docs/trunk/docbook/Makefile.xsltproc)
===================================================================
--- docs/trunk/docbook/Makefile.dblatex (rev 0)
+++ docs/trunk/docbook/Makefile.dblatex 2007-01-06 02:00:41 UTC (rev 25020)
@@ -0,0 +1,44 @@
+include Makefile.common
+
+#
+# Try various potential locations for the stylesheets, picking the
+# first one we find.
+#
+XSL_CANDIDATES = \
+ $(strip $(foreach TMP_XSL, \
+ /sw/share/xml/xsl/docbook-xsl \
+ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh \
+ ./docbook-xsl, \
+ $(shell test -d $(TMP_XSL) && echo $(TMP_XSL))))
+DOCBOOK_XSL := $(firstword $(XSL_CANDIDATES))
+
+
+#
+# These rules use docbook-xsl and xsltproc (from libxslt)
+# as well as dblatex to create HTML, XHTML and PDF output.
+#
+
+XSL_PARAM = --catalogs --stringparam draft.mode no --stringparam paper.type A4
+
+%.html: %.xml
+ SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \
+ xsltproc $(XSL_PARAM) --output $@ $(DOCBOOK_XSL)/html/docbook.xsl $<
+
+%.xhtml: %.xml
+ SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \
+ xsltproc $(XSL_PARAM) --output $@ $(DOCBOOK_XSL)/xhtml/docbook.xsl $<
+
+%.pdf: %.xml
+ dblatex --pdf --no-external --output=$@ $<
+
+# Convert to plain text: Use a text based browser
+# such as lynk, links, elinks, w3m, ... to do the work
+%.txt: %.html
+ w3m -dump $< > $@
+
+
+
+# Special rule for faq.inc:
+# Only keep everything contained inside the top-most <div> inside the <body>
+faq.inc: faq.html
+ xsltproc --html --output $@ faq-inc.xsl $<
Copied: docs/trunk/docbook/Makefile.openjade (from rev 25019, docs/trunk/docbook/Makefile)
===================================================================
--- docs/trunk/docbook/Makefile.openjade (rev 0)
+++ docs/trunk/docbook/Makefile.openjade 2007-01-06 02:00:41 UTC (rev 25020)
@@ -0,0 +1,45 @@
+include Makefile.common
+
+#
+# Try various potential locations for the DCL file, picking the
+# first one we find.
+#
+DCL_CANDIDATES = \
+ $(strip $(foreach TMP_DCL, \
+ /usr/share/sgml/xml.dcl \
+ /usr/share/sgml/declaration/xml.dcl \
+ /sw/share/sgml/openjade-1.3.2/pubtext/xml.dcl, \
+ $(shell test -f $(TMP_DCL) && echo $(TMP_DCL))))
+DCL := --cat docbook-xml-4.2/docbook.cat -l $(firstword $(DCL_CANDIDATES))
+
+
+#
+# The following rules convert our DocBook XML into various target formats
+# with the help of the docbook-utils package. That in turn uses jadetex.
+# Note that the plain text version apparently is simply made by using a text
+# based web client (links, lynx, w3m, ...) on the single page HTML version.
+#
+
+%.pdf: %.xml
+ docbook2pdf $(DCL) $<
+
+%.txt: %.xml
+ docbook2txt $(DCL) $<
+
+%/index.html: %.xml
+ mkdir -p $*
+ docbook2html $(DCL) -o $* $<
+ tidy -qm $*/*.html || true
+
+%.html: %.xml
+ docbook2html $(DCL) --nochunks $<
+ tidy -qm $@ || true
+
+
+# Special rule for faq.inc:
+# Remove everything before <div class="qandaset">
+# and at the end of the file remove
+# </body>
+# </html>
+faq.inc: faq.html
+ ./faq_make_inc.pl < $< > $@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list