Skip to content

Commit dd56051

Browse files
committed
Don't generate plain-text HISTORY and src/test/regress/README anymore.
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.
1 parent f380710 commit dd56051

File tree

12 files changed

+36
-137
lines changed

12 files changed

+36
-137
lines changed

GNUmakefile.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ distdir:
105105
fi || exit; \
106106
done
107107
$(MAKE) -C $(distdir) distprep
108-
$(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
109-
cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
108+
$(MAKE) -C $(distdir)/doc/src/sgml/ INSTALL
110109
cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
111-
cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
112110
$(MAKE) -C $(distdir) distclean
113111
rm -f $(distdir)/README.git
114112

HISTORY

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Release notes for all versions of PostgreSQL can be found on-line at
2+
http://www.postgresql.org/docs/devel/static/release.html
3+
4+
In a distribution file set, release notes for the current version can be
5+
found prebuilt under doc/src/sgml/html/. Visit the index.html file with
6+
an HTML browser, then consult the "Release Notes" appendix.

README

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ See the file INSTALL for instructions on how to build and install
1717
PostgreSQL. That file also lists supported operating systems and
1818
hardware platforms and contains information regarding any other
1919
software packages that are required to build or run the PostgreSQL
20-
system. Changes between all PostgreSQL releases are recorded in the
21-
file HISTORY. Copyright and license information can be found in the
20+
system. Copyright and license information can be found in the
2221
file COPYRIGHT. A comprehensive documentation set is included in this
2322
distribution; it can be read as described in the installation
2423
instructions.

README.git

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
(This file does not appear in release tarballs.)
22

3-
In a release or snapshot tarball of PostgreSQL, documentation files named
4-
INSTALL and HISTORY will appear in this directory. However, these files are
5-
not stored in git and so will not be present if you are using a git checkout.
6-
If you are using git, you can view the most recent install instructions at:
3+
In a release or snapshot tarball of PostgreSQL, a documentation file named
4+
INSTALL will appear in this directory. However, this file is not stored in
5+
git and so will not be present if you are using a git checkout.
6+
7+
If you are using a git checkout, you can view the most recent installation
8+
instructions at:
79
http://www.postgresql.org/docs/devel/static/installation.html
8-
and the current release notes at:
9-
http://www.postgresql.org/docs/devel/static/release.html
1010

1111
Users compiling from git will also need compatible versions of Bison, Flex,
1212
and Perl, as discussed in the install documentation. These programs are not

doc/src/sgml/.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
/man7/
77
/man-stamp
88
# Other popular build targets
9-
/HISTORY
109
/INSTALL
11-
/regress_README
1210
/postgres-US.pdf
1311
/postgres-A4.pdf
1412
/postgres.html
@@ -22,9 +20,7 @@
2220
/HTML.index
2321
# Assorted byproducts from building the above
2422
/postgres.xml
25-
/HISTORY.html
2623
/INSTALL.html
27-
/regress_README.html
2824
/postgres-US.aux
2925
/postgres-US.log
3026
/postgres-US.out

doc/src/sgml/Makefile

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -212,33 +212,20 @@ JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i
212212
ICONV = iconv
213213
LYNX = lynx
214214

215-
# The release notes may contain non-ASCII characters (for contributor
216-
# names), which lynx converts to the encoding determined by the
217-
# current locale. The get output that is deterministic and easily
218-
# readable by everyone, we make lynx produce LATIN1 and then convert
219-
# that to ASCII with transliteration for the non-ASCII characters.
220-
# Official releases are currently built on FreeBSD, which has limited
215+
# The documentation may contain non-ASCII characters (mostly for
216+
# contributor names), which lynx converts to the encoding determined
217+
# by the current locale. To get text output that is deterministic and
218+
# easily readable by everyone, we make lynx produce LATIN1 and then
219+
# convert that to ASCII with transliteration for the non-ASCII characters.
220+
# Official releases were historically built on FreeBSD, which has limited
221221
# locale support and is very picky about locale name spelling. The
222222
# below has been finely tuned to run on FreeBSD and Linux/glibc.
223-
INSTALL HISTORY regress_README: % : %.html
223+
INSTALL: % : %.html
224224
$(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 > $@
225225

226226
INSTALL.html: standalone-install.sgml installation.sgml version.sgml
227227
$(JADE.text) -V nochunks standalone-install.sgml installation.sgml > $@
228228

229-
HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
230-
$(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
231-
$(JADE.text) -V nochunks tempfile_HISTORY.sgml > $@
232-
rm tempfile_HISTORY.sgml
233-
234-
regress_README.html: regress.sgml
235-
( echo '<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook V4.2//EN" ['; \
236-
echo '<!ENTITY % standalone-ignore "IGNORE">'; \
237-
echo '<!ENTITY % standalone-include "INCLUDE"> ]>'; \
238-
cat $< ) >tempfile_regress_README.sgml
239-
$(JADE.text) -V nochunks tempfile_regress_README.sgml > $@
240-
rm tempfile_regress_README.sgml
241-
242229

243230
##
244231
## XSLT processing
@@ -366,13 +353,13 @@ check-tabs:
366353
# This allows removing some files from the distribution tarballs while
367354
# keeping the dependencies satisfied.
368355
.SECONDARY: postgres.xml $(GENERATED_SGML) HTML.index
369-
.SECONDARY: INSTALL.html HISTORY.html regress_README.html
356+
.SECONDARY: INSTALL.html
370357
.SECONDARY: %-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf
371358

372359
clean:
373360
# text --- these are shipped, but not in this directory
374-
rm -f INSTALL HISTORY regress_README
375-
rm -f INSTALL.html HISTORY.html regress_README.html
361+
rm -f INSTALL
362+
rm -f INSTALL.html
376363
# single-page output
377364
rm -f postgres.html postgres.txt
378365
# print

doc/src/sgml/docguide.sgml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -931,26 +931,19 @@ save_size.pdfjadetex = 15000
931931
<title>Plain Text Files</title>
932932

933933
<para>
934-
Several files are distributed as plain text, for reading during
935-
the installation process. The <filename>INSTALL</filename> file
934+
The installation instructions are also distributed as plain text,
935+
in case they are needed in a situation where better reading tools
936+
are not available. The <filename>INSTALL</filename> file
936937
corresponds to <xref linkend="installation">, with some minor
937938
changes to account for the different context. To recreate the
938939
file, change to the directory <filename>doc/src/sgml</filename>
939-
and enter <userinput>gmake INSTALL</userinput>. This will create
940-
a file <filename>INSTALL.html</filename> that can be saved as text
941-
with <productname>Netscape Navigator</productname> and put into
942-
the place of the existing file.
943-
<productname>Netscape</productname> seems to offer the best
944-
quality for <acronym>HTML</acronym> to text conversions (over
945-
<application>lynx</application> and
946-
<application>w3m</application>).
940+
and enter <userinput>gmake INSTALL</userinput>.
947941
</para>
948942

949943
<para>
950-
The file <filename>HISTORY</filename> can be created similarly,
951-
using the command <userinput>gmake HISTORY</userinput>. For the
952-
file <filename>src/test/regress/README</filename> the command is
953-
<userinput>gmake regress_README</userinput>.
944+
In the past, the release notes and regression testing instructions
945+
were also distributed as plain text, but this practice has been
946+
discontinued.
954947
</para>
955948
</sect2>
956949

doc/src/sgml/generate_history.pl

Lines changed: 0 additions & 65 deletions
This file was deleted.

doc/src/sgml/release.sgml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ non-ASCII characters find using grep -P '[\x80-\xFF]'
3636

3737
wrap long lines
3838

39-
For new features, add links to the documentation sections. Use </link>
40-
not just </> so that generate_history.pl can remove it, so HISTORY.html
41-
can be created without links to the main documentation. Don't use <xref>.
39+
For new features, add links to the documentation sections.
4240

4341
-->
4442

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

7472
<!--
7573
To add a new major-release series, add an entry here and in filelist.sgml.
76-
Follow the naming convention, or you'll confuse generate_history.pl.
7774

7875
The reason for splitting the release notes this way is so that appropriate
7976
subsets can easily be copied into back branches.

doc/src/sgml/standalone-install.sgml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@
22

33
<!--
44
This file helps in generating the INSTALL text file that lives in the
5-
top level directory of the distribution. The exact process is like
6-
this:
7-
8-
1. Paste together with installation.sgml
9-
10-
2. Process with jade to HTML (use -V nochunks)
11-
12-
3. Remove "Chapter 1" heading
13-
14-
4. Save as text file in Netscape
15-
16-
5. Put in place of old INSTALL file
17-
18-
Running 'make INSTALL' in the doc/src/sgml directory will do 1 through
19-
3 for you.
5+
top level directory of the distribution.
206
-->
217

228
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook V4.2//EN" [

src/test/regress/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Documentation concerning how to run these regression tests and interpret
2+
the results can be found in the PostgreSQL manual, in the chapter
3+
"Regression Tests".

src/tools/RELEASE_CHANGES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ For All Releases (major, minor, beta, RC)
1010
o update doc/src/sgml/release.sgml
1111
o run spellchecker on result
1212
o add SGML markup
13-
o check if 'gmake HISTORY.html' works for <link>s
1413

1514
* Update timezone data to match latest zic database and new
1615
Windows releases, if any (see src/timezone/README)

0 commit comments

Comments
 (0)