aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2008-11-12 16:01:51 +0000
committerPeter Eisentraut <peter_e@gmx.net>2008-11-12 16:01:51 +0000
commit2b2fb7d85d4b0baa8b1aec782893cc86af397f21 (patch)
treeb5e0a0c6dc62b4858269d98e9cd6a6fc7140e05a
parent18eeacc46325dc085c2275c92dcac9a51e0b1a39 (diff)
downloadpostgresql-2b2fb7d85d4b0baa8b1aec782893cc86af397f21.tar.gz
postgresql-2b2fb7d85d4b0baa8b1aec782893cc86af397f21.zip
Support for man page links, if a man page has more than one refname.
We don't actually use this anywhere, but it might come in handy for dealing with SELECT/WITH/TABLE. It works with both the old and the new man page target (for some value of "works").
-rw-r--r--doc/src/sgml/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index a530cc9f55f..d8df18d54ca 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.110 2008/11/04 14:58:22 petere Exp $
+# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.111 2008/11/12 16:01:51 petere Exp $
#
#----------------------------------------------------------------------------
@@ -39,6 +39,7 @@ endif
# docbook2man generates man pages from docbook refentry source code.
D2MSCRIPT= $(D2MDIR)/docbook2man-spec.pl
+D2MLINKS = $(D2MDIR)/docbook2man-spec_makelinks
GENERATED_SGML = bookindex.sgml version.sgml \
@@ -74,6 +75,7 @@ man: postgres.sgml $(ALLSGML)
$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
$(fix_man_xrefs) *.1 *.$(DEFAULTSECTION)
$(mkinstalldirs) man1 man$(DEFAULTSECTION)
+ $(D2MLINKS) < manpage.links
mv *.1 man1/
mv *.$(DEFAULTSECTION) man$(DEFAULTSECTION)/
@@ -277,7 +279,7 @@ MAKEINFO = makeinfo
DOCBOOK2MAN = docbook2x-man
manx: postgres.xml stylesheet-man.xsl
- $(DOCBOOK2MAN) -s $(srcdir)/stylesheet-man.xsl --string-param default-manpage-section=$(DEFAULTSECTION) $<
+ $(DOCBOOK2MAN) --solinks -s $(srcdir)/stylesheet-man.xsl --string-param default-manpage-section=$(DEFAULTSECTION) $<
$(mkinstalldirs) man1 man$(DEFAULTSECTION)
mv *.1 man1/
mv *.$(DEFAULTSECTION) man$(DEFAULTSECTION)/