]> granicus.if.org Git - postgresql/commitdiff
Allow HISTORY/history.html to be generated by removing <link> elements,
authorBruce Momjian <bruce@momjian.us>
Sat, 7 Oct 2006 23:28:04 +0000 (23:28 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 7 Oct 2006 23:28:04 +0000 (23:28 +0000)
per suggestion from Peter.  Without this, the main doc links prevent
those files from being built.

doc/src/sgml/Makefile
doc/src/sgml/release.sgml

index 010cabbf833945ce6a955a5c840e9224825f5525..48901c465306c6cbf411dbd16d7813e8ada84bc0 100644 (file)
@@ -2,7 +2,7 @@
 #
 # PostgreSQL documentation makefile
 #
-# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.78 2006/10/05 02:04:32 momjian Exp $
+# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.79 2006/10/07 23:28:04 momjian Exp $
 #
 #----------------------------------------------------------------------------
 
@@ -188,9 +188,12 @@ INSTALL HISTORY regress_README: % : %.html
 INSTALL.html: standalone-install.sgml installation.sgml version.sgml
        $(JADE.text) -V nochunks standalone-install.sgml installation.sgml >$@
 
+# remove links to main documentation
 HISTORY.html: release.sgml
        ( echo '<!doctype appendix PUBLIC "-//OASIS//DTD DocBook V4.2//EN">'; \
-         cat $< ) >tempfile_HISTORY.sgml
+         cat $< ) | \
+       $(PERL) -p -0 -e 's/<link[\n\s]+linkend[^>]*>//sg' | \
+       $(PERL) -p -e 's/<\/link>//g' >tempfile_HISTORY.sgml
        $(JADE.text) -V nochunks tempfile_HISTORY.sgml >$@
        rm tempfile_HISTORY.sgml
 
index 429a1a8e31b1bdb66993d2a1cf51093da433abd6..b28493e8751dc3039815acc6131310fabe600047 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.466 2006/10/07 22:06:25 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.467 2006/10/07 23:28:04 momjian Exp $ -->
 <!--
 
 Typical markup:
@@ -25,7 +25,9 @@ non-ASCII characters            convert to HTML4 entity (&) escapes
 
 wrap long lines
 
-For new features, add links to the documentation sections.
+For new features, add links to the documentation sections.  Use </link>
+so that perl can remove it so HISTORY.html can be created with no
+links to the main documentation.
 
 -->