From: Peter Eisentraut Date: Tue, 4 Nov 2008 14:58:22 +0000 (+0000) Subject: Experimental new support for building man pages via docbook2x, an XSL-based X-Git-Tag: REL8_4_BETA1~760 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=725ba51f2c1eb87aca90dec7deb0f17e6f4d8adb;p=postgresql Experimental new support for building man pages via docbook2x, an XSL-based tool chain. With some polishing, this might help us get rid of our ancient and crufty man page build mechanism. --- diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 49ac946091..a530cc9f55 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -2,7 +2,7 @@ # # PostgreSQL documentation makefile # -# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.109 2008/10/31 14:35:30 petere Exp $ +# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.110 2008/11/04 14:58:22 petere Exp $ # #---------------------------------------------------------------------------- @@ -269,6 +269,20 @@ MAKEINFO = makeinfo .SUFFIXES: +## +## Experimental man page building through docbook2x +## + +# called docbook2man on non-Debian +DOCBOOK2MAN = docbook2x-man + +manx: postgres.xml stylesheet-man.xsl + $(DOCBOOK2MAN) -s $(srcdir)/stylesheet-man.xsl --string-param default-manpage-section=$(DEFAULTSECTION) $< + $(mkinstalldirs) man1 man$(DEFAULTSECTION) + mv *.1 man1/ + mv *.$(DEFAULTSECTION) man$(DEFAULTSECTION)/ + + ## ## Check ## diff --git a/doc/src/sgml/stylesheet-man.xsl b/doc/src/sgml/stylesheet-man.xsl new file mode 100644 index 0000000000..2d37a42f1a --- /dev/null +++ b/doc/src/sgml/stylesheet-man.xsl @@ -0,0 +1,16 @@ + + + + + + + + + + +