Skip to content

Commit dc1e047

Browse files
committed
Allow HISTORY/history.html to be generated by removing <link> elements,
per suggestion from Peter. Without this, the main doc links prevent those files from being built.
1 parent 0629030 commit dc1e047

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

doc/src/sgml/Makefile

Lines changed: 5 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.78 2006/10/05 02:04:32 momjian Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.79 2006/10/07 23:28:04 momjian Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -188,9 +188,12 @@ INSTALL HISTORY regress_README: % : %.html
188188
INSTALL.html: standalone-install.sgml installation.sgml version.sgml
189189
$(JADE.text) -V nochunks standalone-install.sgml installation.sgml >$@
190190

191+
# remove links to main documentation
191192
HISTORY.html: release.sgml
192193
( echo '<!doctype appendix PUBLIC "-//OASIS//DTD DocBook V4.2//EN">'; \
193-
cat $< ) >tempfile_HISTORY.sgml
194+
cat $< ) | \
195+
$(PERL) -p -0 -e 's/<link[\n\s]+linkend[^>]*>//sg' | \
196+
$(PERL) -p -e 's/<\/link>//g' >tempfile_HISTORY.sgml
194197
$(JADE.text) -V nochunks tempfile_HISTORY.sgml >$@
195198
rm tempfile_HISTORY.sgml
196199

doc/src/sgml/release.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.466 2006/10/07 22:06:25 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.467 2006/10/07 23:28:04 momjian Exp $ -->
22
<!--
33

44
Typical markup:
@@ -25,7 +25,9 @@ non-ASCII characters convert to HTML4 entity (&) escapes
2525

2626
wrap long lines
2727

28-
For new features, add links to the documentation sections.
28+
For new features, add links to the documentation sections. Use </link>
29+
so that perl can remove it so HISTORY.html can be created with no
30+
links to the main documentation.
2931

3032
-->
3133

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