[postgis-commits] svn - r2957 - in trunk: . doc
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Thu Sep 11 05:18:37 PDT 2008
Author: mcayland
Date: 2008-09-11 05:18:37 -0700 (Thu, 11 Sep 2008)
New Revision: 2957
Modified:
trunk/configure.ac
trunk/doc/Makefile.in
Log:
Reinstate the PDF documentation system based on OpenJade, including integration with autoconf. "make postgis.pdf" should now output lovely PDF format documentation :)
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2008-09-11 12:04:36 UTC (rev 2956)
+++ trunk/configure.ac 2008-09-11 12:18:37 UTC (rev 2957)
@@ -67,6 +67,16 @@
dnl
+dnl Search for db2pdf which is required for building PDF documentation
+dnl
+
+AC_PATH_PROG([DB2PDF], [db2pdf], [])
+if test "x$DB2PDF" = "x"; then
+ AC_MSG_WARN([db2pdf is not installed so PDF documentation cannot be built])
+fi
+
+
+dnl
dnl Allow the user to specify the location of the html/docbook.xsl stylesheet
dnl
Modified: trunk/doc/Makefile.in
===================================================================
--- trunk/doc/Makefile.in 2008-09-11 12:04:36 UTC (rev 2956)
+++ trunk/doc/Makefile.in 2008-09-11 12:18:37 UTC (rev 2957)
@@ -30,6 +30,9 @@
HTML_DOCBOOK_XSL=$(XSLBASE)/html/docbook.xsl
CHUNK_HTML_DOCBOOK_XSL=$(XSLBASE)/html/chunk.xsl
+# OpenJade's db2pdf script for PDF generation from DocBook
+DB2PDF = @DB2PDF@
+
# Directories for documentation and man pages
PGSQL_DOCDIR=@PGSQL_DOCDIR@
PGSQL_MANDIR=@PGSQL_MANDIR@
@@ -62,6 +65,15 @@
$(HTML_DOCBOOK_XSL) \
$<
+postgis.pdf: postgis-out.xml
+ @if test x"$(DB2PDF)" = x; then \
+ echo "Error: db2pdf not found, can't build posgis.pdf"; \
+ echo " try installing docbook-utils package and then re-run configure"; \
+ false; \
+ else \
+ $(DB2PDF) $< && mv postgis-out.pdf postgis.pdf; \
+ fi
+
clean:
@rm -f \
postgis-out.xml \
More information about the postgis-commits
mailing list