Don't generate plain-text HISTORY and src/test/regress/README anymore.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Feb 2014 01:48:30 +0000 (20:48 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Feb 2014 01:48:30 +0000 (20:48 -0500)
Providing this information as plain text was doubtless worth the trouble
ten years ago, but it seems likely that hardly anyone reads it in this
format anymore.  And the effort required to maintain these files (in the
form of extra-complex markup rules in the relevant parts of the SGML
documentation) is significant.  So, let's stop doing that and rely solely
on the other documentation formats.

Per discussion, the plain-text INSTALL instructions might still be worth
their keep, so we continue to generate that file.

Rather than remove HISTORY and src/test/regress/README from distribution
tarballs entirely, replace them with simple stub files that tell the reader
where to find the relevant documentation.  This is mainly to avoid possibly
breaking packaging recipes that expect these files to exist.

Back-patch to all supported branches, because simplifying the markup
requirements for release notes won't help much unless we do it in all
branches.

12 files changed:
GNUmakefile.in
HISTORY [new file with mode: 0644]
README
README.git
doc/src/sgml/.gitignore
doc/src/sgml/Makefile
doc/src/sgml/docguide.sgml
doc/src/sgml/generate_history.pl [deleted file]
doc/src/sgml/release.sgml
doc/src/sgml/standalone-install.sgml
src/test/regress/README [new file with mode: 0644]
src/tools/RELEASE_CHANGES

index c924f305994c25c2133b5e554d3fa61a2b5823a7..34e79566ae45067115d8791e160b983f08a0a87a 100644 (file)
@@ -129,10 +129,8 @@ distdir:
      fi || exit; \
    done
    $(MAKE) -C $(distdir) distprep
-   $(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
-   cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
+   $(MAKE) -C $(distdir)/doc/src/sgml/ INSTALL
    cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
-   cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
    $(MAKE) -C $(distdir) distclean
    rm -f $(distdir)/README.git
 
diff --git a/HISTORY b/HISTORY
new file mode 100644 (file)
index 0000000..360c7f6
--- /dev/null
+++ b/HISTORY
@@ -0,0 +1,6 @@
+Release notes for all versions of PostgreSQL can be found on-line at
+http://www.postgresql.org/docs/devel/static/release.html
+
+In a distribution file set, release notes for the current version can be
+found prebuilt under doc/src/sgml/html/.  Visit the index.html file with
+an HTML browser, then consult the "Release Notes" appendix.
diff --git a/README b/README
index 19ed46b441064f7452301b650505b4e23e019537..370acde684ad552e1e3b51ec5dfab2deb314ad4e 100644 (file)
--- a/README
+++ b/README
@@ -17,8 +17,7 @@ See the file INSTALL for instructions on how to build and install
 PostgreSQL.  That file also lists supported operating systems and
 hardware platforms and contains information regarding any other
 software packages that are required to build or run the PostgreSQL
-system.  Changes between all PostgreSQL releases are recorded in the
-file HISTORY.  Copyright and license information can be found in the
+system.  Copyright and license information can be found in the
 file COPYRIGHT.  A comprehensive documentation set is included in this
 distribution; it can be read as described in the installation
 instructions.
index d5378b4573c2f6b1a71d4ae03016a56886e671c9..0bf2b56cb3456035975b8492e8ad5bcc7b86d36c 100644 (file)
@@ -1,12 +1,12 @@
 (This file does not appear in release tarballs.)
 
-In a release or snapshot tarball of PostgreSQL, documentation files named
-INSTALL and HISTORY will appear in this directory.  However, these files are
-not stored in git and so will not be present if you are using a git checkout.
-If you are using git, you can view the most recent install instructions at:
+In a release or snapshot tarball of PostgreSQL, a documentation file named
+INSTALL will appear in this directory.  However, this file is not stored in
+git and so will not be present if you are using a git checkout.
+
+If you are using a git checkout, you can view the most recent installation
+instructions at:
    http://www.postgresql.org/docs/devel/static/installation.html
-and the current release notes at:
-   http://www.postgresql.org/docs/devel/static/release.html
 
 Users compiling from git will also need compatible versions of Bison, Flex,
 and Perl, as discussed in the install documentation.  These programs are not
index dbe5e7509d87c0dd1302d0ac0060cee7d533215b..1ad64f58c266b5bc4ee9d6a0f14db1595ef274e5 100644 (file)
@@ -2,9 +2,7 @@
 *.html
 *.[1-9]
 # Other popular build targets
-/HISTORY
 /INSTALL
-/regress_README
 /postgres-US.pdf
 /postgres-A4.pdf
 # GENERATED_SGML
@@ -16,6 +14,7 @@
 /HTML.index.start
 # Assorted byproducts from building the above
 /postgres.xml
+/INSTALL.html
 /postgres-US.aux
 /postgres-US.log
 /postgres-US.out
index 6b408f98dbbf456b22e5a59ac1c0fa66b36ba557..438a468e8b50f96b70feccf7857b6b0544afa198 100644 (file)
@@ -205,25 +205,12 @@ postgres.pdf:
 JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-text -t sgml
 LYNX = lynx
 
-INSTALL HISTORY regress_README: % : %.html
+INSTALL: % : %.html
    $(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist -stdin >$@
 
 INSTALL.html: standalone-install.sgml installation.sgml version.sgml
    $(JADE.text) -V nochunks standalone-install.sgml installation.sgml >$@
 
-HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
-   $(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
-   $(JADE.text) -V nochunks tempfile_HISTORY.sgml >$@
-   rm tempfile_HISTORY.sgml
-
-regress_README.html: regress.sgml
-   ( echo '<!doctype chapter PUBLIC "-//OASIS//DTD DocBook V4.2//EN" ['; \
-     echo '<!entity % standalone-ignore "IGNORE">'; \
-     echo '<!entity % standalone-include "INCLUDE"> ]>'; \
-     cat $< ) >tempfile_regress_README.sgml
-   $(JADE.text) -V nochunks tempfile_regress_README.sgml >$@
-   rm tempfile_regress_README.sgml
-
 
 ##
 ## XSLT processing
@@ -310,7 +297,7 @@ clean distclean maintainer-clean:
 # index
    rm -f HTML.index HTML.index.start $(GENERATED_SGML)
 # text
-   rm -f INSTALL HISTORY regress_README
+   rm -f INSTALL
 # XSLT
    rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk *.fo
 # Texinfo
index e4c8829c16fa95ec3fca2e85a60b148bd48f44c7..52e8a1b2ed997b9bb60293d1661f1eb3451b35f9 100644 (file)
@@ -925,26 +925,19 @@ save_size.pdfjadetex = 15000
    <title>Plain Text Files</title>
 
    <para>
-    Several files are distributed as plain text, for reading during
-    the installation process. The <filename>INSTALL</filename> file
+    The installation instructions are also distributed as plain text,
+    in case they are needed in a situation where better reading tools
+    are not available.  The <filename>INSTALL</filename> file
     corresponds to <xref linkend="installation">, with some minor
     changes to account for the different context.  To recreate the
     file, change to the directory <filename>doc/src/sgml</filename>
-    and enter <userinput>gmake INSTALL</userinput>.  This will create
-    a file <filename>INSTALL.html</filename> that can be saved as text
-    with <productname>Netscape Navigator</productname> and put into
-    the place of the existing file.
-    <productname>Netscape</productname> seems to offer the best
-    quality for <acronym>HTML</acronym> to text conversions (over
-    <application>lynx</application> and
-    <application>w3m</application>).
+    and enter <userinput>gmake INSTALL</userinput>.
    </para>
 
    <para>
-    The file <filename>HISTORY</filename> can be created similarly,
-    using the command <userinput>gmake HISTORY</userinput>.  For the
-    file <filename>src/test/regress/README</filename> the command is
-    <userinput>gmake regress_README</userinput>.
+    In the past, the release notes and regression testing instructions
+    were also distributed as plain text, but this practice has been
+    discontinued.
    </para>
   </sect2>
 
diff --git a/doc/src/sgml/generate_history.pl b/doc/src/sgml/generate_history.pl
deleted file mode 100644 (file)
index 20f3d0e..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-#! /usr/bin/perl -w
-
-# generate_history.pl -- flatten release notes for use as HISTORY file
-#
-# Usage: generate_history.pl srcdir release.sgml >output.sgml
-#
-# The main point of this script is to strip out <link> references, which
-# generally point into the rest of the documentation and so can't be used
-# in a standalone build of the release notes.  To make sure this is done
-# everywhere, we have to fold in the sub-files of the release notes.
-#
-# $PostgreSQL: pgsql/doc/src/sgml/generate_history.pl,v 1.1 2009/05/02 20:17:19 tgl Exp $
-
-use strict;
-
-my($srcdir) = shift;
-defined($srcdir) || die "$0: missing required argument: srcdir\n";
-my($infile) = shift;
-defined($infile) || die "$0: missing required argument: inputfile\n";
-
-# Emit DOCTYPE header so that the output is a self-contained SGML document
-print "<!DOCTYPE appendix PUBLIC \"-//OASIS//DTD DocBook V4.2//EN\">\n";
-
-process_file($infile);
-
-exit 0;
-
-sub process_file {
-    my($filename) = @_;
-
-    local *FILE;       # need a local filehandle so we can recurse
-
-    my($f) = $srcdir . '/' . $filename;
-    open(FILE, $f) || die "could not read $f: $!\n";
-
-    while (<FILE>) {
-   # Recursively expand sub-files of the release notes
-   if (m/^&(release-.*);$/) {
-       process_file($1 . ".sgml");
-       next;
-   }
-
-   # Remove <link ...> tags, which might span multiple lines
-   while (m/<link/) {
-       if (s/<link\s+linkend[^>]*>//) {
-       next;
-       }
-       # incomplete tag, so slurp another line
-       $_ .= <FILE>;
-   }
-
-   # Remove </link> too
-   s|</link>||g;
-
-   print;
-    }
-    close(FILE);
-}
index d08cf5565c1da8fa26ae2c116f0c956f78214d55..feab734a5d99bc6d7cebda438b5a79f08c117c0a 100644 (file)
@@ -26,9 +26,7 @@ non-ASCII characters            convert to HTML4 entity (&) escapes
 
 wrap long lines
 
-For new features, add links to the documentation sections.  Use </link>
-not just </> so that generate_history.pl can remove it, so HISTORY.html
-can be created without links to the main documentation.
+For new features, add links to the documentation sections.
 
 -->
 
@@ -63,7 +61,6 @@ can be created without links to the main documentation.
 
 <!--
   To add a new major-release series, add an entry here and in filelist.sgml.
-  Follow the naming convention, or you'll confuse generate_history.pl.
 
   The reason for splitting the release notes this way is so that appropriate
   subsets can easily be copied into back branches.
index 7328ef155309f118d29affb02142de291f5dd01a..b7b8496be193b0f8e5168bed428f023c2d268490 100644 (file)
@@ -2,21 +2,7 @@
 
 <!--
 This file helps in generating the INSTALL text file that lives in the
-top level directory of the distribution. The exact process is like
-this:
-
-1. Paste together with installation.sgml
-
-2. Process with jade to HTML (use -V nochunks)
-
-3. Remove "Chapter 1" heading
-
-4. Save as text file in Netscape
-
-5. Put in place of old INSTALL file
-
-Running 'make INSTALL' in the doc/src/sgml directory will do 1 through
-3 for you.
+top level directory of the distribution.
 -->
 
 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook V4.2//EN" [
diff --git a/src/test/regress/README b/src/test/regress/README
new file mode 100644 (file)
index 0000000..0cbf3b6
--- /dev/null
@@ -0,0 +1,3 @@
+Documentation concerning how to run these regression tests and interpret
+the results can be found in the PostgreSQL manual, in the chapter
+"Regression Tests".
index b2ad848053bce403f1bed1e608ca7276fb679eee..c066f17487e288aba374c9eefa3ef1a64e79aab7 100644 (file)
@@ -10,7 +10,6 @@ For All Releases (major, minor, beta, RC)
    o update doc/src/sgml/release.sgml
    o run spellchecker on result
    o add SGML markup
-   o check if 'gmake HISTORY.html' works for <link>s
 
 * Update timezone data to match latest zic database (see src/timezone/README)