Skip to content

Commit 2b2fb7d

Browse files
committed
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").
1 parent 18eeacc commit 2b2fb7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.110 2008/11/04 14:58:22 petere Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.111 2008/11/12 16:01:51 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -39,6 +39,7 @@ endif
3939

4040
# docbook2man generates man pages from docbook refentry source code.
4141
D2MSCRIPT= $(D2MDIR)/docbook2man-spec.pl
42+
D2MLINKS = $(D2MDIR)/docbook2man-spec_makelinks
4243

4344

4445
GENERATED_SGML = bookindex.sgml version.sgml \
@@ -74,6 +75,7 @@ man: postgres.sgml $(ALLSGML)
7475
$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
7576
$(fix_man_xrefs) *.1 *.$(DEFAULTSECTION)
7677
$(mkinstalldirs) man1 man$(DEFAULTSECTION)
78+
$(D2MLINKS) < manpage.links
7779
mv *.1 man1/
7880
mv *.$(DEFAULTSECTION) man$(DEFAULTSECTION)/
7981

@@ -277,7 +279,7 @@ MAKEINFO = makeinfo
277279
DOCBOOK2MAN = docbook2x-man
278280

279281
manx: postgres.xml stylesheet-man.xsl
280-
$(DOCBOOK2MAN) -s $(srcdir)/stylesheet-man.xsl --string-param default-manpage-section=$(DEFAULTSECTION) $<
282+
$(DOCBOOK2MAN) --solinks -s $(srcdir)/stylesheet-man.xsl --string-param default-manpage-section=$(DEFAULTSECTION) $<
281283
$(mkinstalldirs) man1 man$(DEFAULTSECTION)
282284
mv *.1 man1/
283285
mv *.$(DEFAULTSECTION) man$(DEFAULTSECTION)/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy