Skip to content

Commit e6b8f47

Browse files
committed
Man pages back to lowercase names, with additional fixup to make the .so
links work.
1 parent 888bcdb commit e6b8f47

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/src/sgml/Makefile

Lines changed: 6 additions & 3 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.116 2009/06/19 19:14:25 petere Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.117 2009/06/25 21:15:38 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -72,17 +72,20 @@ override SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged
7272
DEFAULTSECTION = l
7373

7474
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-]*\]}{in the documentation}g'
75+
lowercase = tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'
7576

7677
man: postgres.sgml $(ALLSGML)
77-
$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
78+
$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
7879
# One more time, to resolve cross-references
79-
$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
80+
$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
8081
$(fix_man_xrefs) *.1 *.7
8182
$(mkinstalldirs) man1 man7
8283
$(D2MLINKS) < manpage.links
8384
mv *.1 man1/
8485
mv *.7 man7/
8586
rm *.$(DEFAULTSECTION)
87+
# manpage.links doesn't handle lowercase, needs fixups
88+
cd man7 && for file in `awk '{ print $$2 }' ../manpage.links`; do $(lowercase) <$$file >`echo $$file | $(lowercase)` && rm $$file || exit; done
8689

8790

8891
##

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