Skip to content

Commit 432735c

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 6141983 commit 432735c

File tree

12 files changed

+29
-120
lines changed

12 files changed

+29
-120
lines changed

GNUmakefile.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ distdir:
129129
fi || exit; \
130130
done
131131
$(MAKE) -C $(distdir) distprep
132-
$(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
133-
cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
132+
$(MAKE) -C $(distdir)/doc/src/sgml/ INSTALL
134133
cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
135-
cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
136134
$(MAKE) -C $(distdir) distclean
137135
rm -f $(distdir)/README.git
138136

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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
*.html
33
*.[1-9]
44
# Other popular build targets
5-
/HISTORY
65
/INSTALL
7-
/regress_README
86
/postgres-US.pdf
97
/postgres-A4.pdf
108
# GENERATED_SGML
@@ -16,6 +14,7 @@
1614
/HTML.index.start
1715
# Assorted byproducts from building the above
1816
/postgres.xml
17+
/INSTALL.html
1918
/postgres-US.aux
2019
/postgres-US.log
2120
/postgres-US.out

doc/src/sgml/Makefile

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -205,25 +205,12 @@ postgres.pdf:
205205
JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-text -t sgml
206206
LYNX = lynx
207207

208-
INSTALL HISTORY regress_README: % : %.html
208+
INSTALL: % : %.html
209209
$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist -stdin >$@
210210

211211
INSTALL.html: standalone-install.sgml installation.sgml version.sgml
212212
$(JADE.text) -V nochunks standalone-install.sgml installation.sgml >$@
213213

214-
HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
215-
$(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
216-
$(JADE.text) -V nochunks tempfile_HISTORY.sgml >$@
217-
rm tempfile_HISTORY.sgml
218-
219-
regress_README.html: regress.sgml
220-
( echo '<!doctype chapter PUBLIC "-//OASIS//DTD DocBook V4.2//EN" ['; \
221-
echo '<!entity % standalone-ignore "IGNORE">'; \
222-
echo '<!entity % standalone-include "INCLUDE"> ]>'; \
223-
cat $< ) >tempfile_regress_README.sgml
224-
$(JADE.text) -V nochunks tempfile_regress_README.sgml >$@
225-
rm tempfile_regress_README.sgml
226-
227214

228215
##
229216
## XSLT processing
@@ -310,7 +297,7 @@ clean distclean maintainer-clean:
310297
# index
311298
rm -f HTML.index HTML.index.start $(GENERATED_SGML)
312299
# text
313-
rm -f INSTALL HISTORY regress_README
300+
rm -f INSTALL
314301
# XSLT
315302
rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk *.fo
316303
# Texinfo

doc/src/sgml/docguide.sgml

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

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

943937
<para>
944-
The file <filename>HISTORY</filename> can be created similarly,
945-
using the command <userinput>gmake HISTORY</userinput>. For the
946-
file <filename>src/test/regress/README</filename> the command is
947-
<userinput>gmake regress_README</userinput>.
938+
In the past, the release notes and regression testing instructions
939+
were also distributed as plain text, but this practice has been
940+
discontinued.
948941
</para>
949942
</sect2>
950943

doc/src/sgml/generate_history.pl

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

doc/src/sgml/release.sgml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ non-ASCII characters convert to HTML4 entity (&) escapes
2626

2727
wrap long lines
2828

29-
For new features, add links to the documentation sections. Use </link>
30-
not just </> so that generate_history.pl can remove it, so HISTORY.html
31-
can be created without links to the main documentation.
29+
For new features, add links to the documentation sections.
3230

3331
-->
3432

@@ -63,7 +61,6 @@ can be created without links to the main documentation.
6361

6462
<!--
6563
To add a new major-release series, add an entry here and in filelist.sgml.
66-
Follow the naming convention, or you'll confuse generate_history.pl.
6764

6865
The reason for splitting the release notes this way is so that appropriate
6966
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" [

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