Skip to content

Commit 10e5a75

Browse files
committed
Add some post-processing to the man page generation to fix up external/
dangling cross-references.
1 parent 073149c commit 10e5a75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/src/sgml/Makefile

Lines changed: 4 additions & 1 deletion
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.74 2004/11/23 21:41:24 petere Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.75 2005/01/04 21:03:30 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -69,10 +69,13 @@ override SPFLAGS += -wall -wno-unused-param -wno-empty
6969

7070
DEFAULTSECTION := $(sqlmansect_dummy)
7171

72+
fix_man_xrefs = $(PERL) -npi -e 's{\[XRef to GUC-([A-Z0-9-]*)\]}{($$l = $$1) =~ tr/A-Z-/a-z_/, $$l}ge || s{\[XRef to [A-Z0-9-]*\]}{the documentation}g'
73+
7274
man: postgres.sgml $(ALLSGML)
7375
$(NSGMLS) $(NSGMLS_FLAGS) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
7476
# One more time, to resolve cross-references
7577
$(NSGMLS) $(NSGMLS_FLAGS) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
78+
$(fix_man_xrefs) *.1 *.$(DEFAULTSECTION)
7679
$(mkinstalldirs) man1 man$(DEFAULTSECTION)
7780
mv *.1 man1/
7881
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