Skip to content

Commit

Permalink
Don't generate plain-text HISTORY and src/test/regress/README anymore.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tglsfdc committed Feb 11, 2014
1 parent d699ba4 commit 2895415
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 137 deletions.
4 changes: 1 addition & 3 deletions GNUmakefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,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

Expand Down
6 changes: 6 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 1 addition & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions README.git
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions doc/src/sgml/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
/man7/
/man-stamp
# Other popular build targets
/HISTORY
/INSTALL
/regress_README
/postgres-US.pdf
/postgres-A4.pdf
/postgres.html
Expand All @@ -22,9 +20,7 @@
/HTML.index
# Assorted byproducts from building the above
/postgres.xml
/HISTORY.html
/INSTALL.html
/regress_README.html
/postgres-US.aux
/postgres-US.log
/postgres-US.out
Expand Down
33 changes: 10 additions & 23 deletions doc/src/sgml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -215,33 +215,20 @@ JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i
ICONV = iconv
LYNX = lynx

# The release notes may contain non-ASCII characters (for contributor
# names), which lynx converts to the encoding determined by the
# current locale. The get output that is deterministic and easily
# readable by everyone, we make lynx produce LATIN1 and then convert
# that to ASCII with transliteration for the non-ASCII characters.
# Official releases are currently built on FreeBSD, which has limited
# The documentation may contain non-ASCII characters (mostly for
# contributor names), which lynx converts to the encoding determined
# by the current locale. To get text output that is deterministic and
# easily readable by everyone, we make lynx produce LATIN1 and then
# convert that to ASCII with transliteration for the non-ASCII characters.
# Official releases were historically built on FreeBSD, which has limited
# locale support and is very picky about locale name spelling. The
# below has been finely tuned to run on FreeBSD and Linux/glibc.
INSTALL HISTORY regress_README: % : %.html
INSTALL: % : %.html
$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | LC_ALL=en_US.ISO8859-1 $(LYNX) -force_html -dump -nolist -stdin | $(ICONV) -f latin1 -t us-ascii//TRANSLIT > $@

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
Expand Down Expand Up @@ -393,13 +380,13 @@ check-tabs:
# This allows removing some files from the distribution tarballs while
# keeping the dependencies satisfied.
.SECONDARY: postgres.xml $(GENERATED_SGML) HTML.index
.SECONDARY: INSTALL.html HISTORY.html regress_README.html
.SECONDARY: INSTALL.html
.SECONDARY: %-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf

clean:
# text --- these are shipped, but not in this directory
rm -f INSTALL HISTORY regress_README
rm -f INSTALL.html HISTORY.html regress_README.html
rm -f INSTALL
rm -f INSTALL.html
# single-page output
rm -f postgres.html postgres.txt
# print
Expand Down
21 changes: 7 additions & 14 deletions doc/src/sgml/docguide.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -942,26 +942,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>

Expand Down
65 changes: 0 additions & 65 deletions doc/src/sgml/generate_history.pl

This file was deleted.

5 changes: 1 addition & 4 deletions doc/src/sgml/release.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ non-ASCII characters find using grep -P '[\x80-\xFF]'

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. Don't use <xref>.
For new features, add links to the documentation sections.

-->

Expand Down Expand Up @@ -71,7 +69,6 @@ can be created without links to the main documentation. Don't use <xref>.

<!--
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.
Expand Down
16 changes: 1 addition & 15 deletions doc/src/sgml/standalone-install.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -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" [
Expand Down
3 changes: 3 additions & 0 deletions src/test/regress/README
Original file line number Diff line number Diff line change
@@ -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".
1 change: 0 additions & 1 deletion src/tools/RELEASE_CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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 and new
Windows releases, if any (see src/timezone/README)
Expand Down

0 comments on commit 2895415

Please sign in to comment.