Commit 0cd5ce6b authored by Peter Eisentraut's avatar Peter Eisentraut

Compute version number for docs on the fly.

parent 08028faa
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.51 2002/08/05 19:43:30 petere Exp $ # $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.52 2002/10/12 16:34:28 petere Exp $
# #
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
...@@ -52,7 +52,7 @@ vpath %.sgml ./ref ...@@ -52,7 +52,7 @@ vpath %.sgml ./ref
ALLBOOKS = admin developer programmer reference tutorial user ALLBOOKS = admin developer programmer reference tutorial user
ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) bookindex.sgml setindex.sgml ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) bookindex.sgml setindex.sgml version.sgml
ifdef DOCBOOKSTYLE ifdef DOCBOOKSTYLE
CATALOG = -c $(DOCBOOKSTYLE)/catalog CATALOG = -c $(DOCBOOKSTYLE)/catalog
...@@ -119,6 +119,12 @@ setindex.sgml: HTML.index ...@@ -119,6 +119,12 @@ setindex.sgml: HTML.index
$(COLLATEINDEX) -i 'setindex' -x -o $@ $< $(COLLATEINDEX) -i 'setindex' -x -o $@ $<
endif endif
version.sgml: $(top_builddir)/src/Makefile.global
{ \
echo "<!entity version \"$(VERSION)\">"; \
echo "<!entity majorversion \"`expr $(VERSION) : '\([0-9][0-9]*\.[0-9][0-9]*\)'`\">"; \
} >$@
## ##
## Print ## Print
...@@ -190,8 +196,8 @@ INSTALL HISTORY regress_README: % : %.html ...@@ -190,8 +196,8 @@ INSTALL HISTORY regress_README: % : %.html
echo "| and put it in place of the existing '$@' file.";\ echo "| and put it in place of the existing '$@' file.";\
echo "|" echo "|"
INSTALL.html: standalone-install.sgml installation.sgml INSTALL.html: standalone-install.sgml installation.sgml version.sgml
$(JADE.text) -V nochunks $+ >$@ $(JADE.text) -V nochunks standalone-install.sgml installation.sgml >$@
HISTORY.html: release.sgml HISTORY.html: release.sgml
( echo '<!doctype appendix PUBLIC "-//OASIS//DTD DocBook V3.1//EN">'; \ ( echo '<!doctype appendix PUBLIC "-//OASIS//DTD DocBook V3.1//EN">'; \
...@@ -233,4 +239,4 @@ clean distclean maintainer-clean: ...@@ -233,4 +239,4 @@ clean distclean maintainer-clean:
# print # print
rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.eps *.fot rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.eps *.fot
# index # index
rm -f HTML.index bookindex.sgml setindex.sgml rm -f HTML.index bookindex.sgml setindex.sgml version.sgml
<!--
Update this file to propagate correct current version numbers to the
documentation. In text, use for example &version; to refer to them.
-->
<!entity version "7.3">
<!entity majorversion "7.3">
* Version numbers * Version numbers
configure.in and configure configure.in and configure
update version and perhaps majorversion in doc/src/sgml/version.sgml
bump interface version numbers bump interface version numbers
o src/interfaces/libpq/libpq.rc o src/interfaces/libpq/libpq.rc
o src/include/pg_config.h.win32 o src/include/pg_config.h.win32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment