Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0cd5ce6

Browse files
committed
Compute version number for docs on the fly.
1 parent 08028fa commit 0cd5ce6

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

doc/src/sgml/Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.51 2002/08/05 19:43:30 petere Exp $
11+
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.52 2002/10/12 16:34:28 petere Exp $
1212
#
1313
#----------------------------------------------------------------------------
1414

@@ -52,7 +52,7 @@ vpath %.sgml ./ref
5252

5353
ALLBOOKS = admin developer programmer reference tutorial user
5454

55-
ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) bookindex.sgml setindex.sgml
55+
ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) bookindex.sgml setindex.sgml version.sgml
5656

5757
ifdef DOCBOOKSTYLE
5858
CATALOG = -c $(DOCBOOKSTYLE)/catalog
@@ -119,6 +119,12 @@ setindex.sgml: HTML.index
119119
$(COLLATEINDEX) -i 'setindex' -x -o $@ $<
120120
endif
121121

122+
version.sgml: $(top_builddir)/src/Makefile.global
123+
{ \
124+
echo "<!entity version \"$(VERSION)\">"; \
125+
echo "<!entity majorversion \"`expr $(VERSION) : '\([0-9][0-9]*\.[0-9][0-9]*\)'`\">"; \
126+
} >$@
127+
122128

123129
##
124130
## Print
@@ -190,8 +196,8 @@ INSTALL HISTORY regress_README: % : %.html
190196
echo "| and put it in place of the existing '$@' file.";\
191197
echo "|"
192198

193-
INSTALL.html: standalone-install.sgml installation.sgml
194-
$(JADE.text) -V nochunks $+ >$@
199+
INSTALL.html: standalone-install.sgml installation.sgml version.sgml
200+
$(JADE.text) -V nochunks standalone-install.sgml installation.sgml >$@
195201

196202
HISTORY.html: release.sgml
197203
( echo '<!doctype appendix PUBLIC "-//OASIS//DTD DocBook V3.1//EN">'; \
@@ -233,4 +239,4 @@ clean distclean maintainer-clean:
233239
# print
234240
rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.eps *.fot
235241
# index
236-
rm -f HTML.index bookindex.sgml setindex.sgml
242+
rm -f HTML.index bookindex.sgml setindex.sgml version.sgml

doc/src/sgml/version.sgml

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

src/tools/RELEASE_CHANGES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
* Version numbers
22
configure.in and configure
3-
update version and perhaps majorversion in doc/src/sgml/version.sgml
43
bump interface version numbers
54
o src/interfaces/libpq/libpq.rc
65
o src/include/pg_config.h.win32

0 commit comments

Comments
 (0)