From 0dd712b82333356980a4ae5b68374947573928af Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 12 Nov 2008 16:01:51 +0000 Subject: [PATCH] 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"). --- doc/src/sgml/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index d4604e596e..7cfa3b3407 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -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)/ -- 2.39.5