aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.devel
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>1999-11-25 12:50:28 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>1999-11-25 12:50:28 +0000
commitf2558d56569263823c7e2a2bce789017aa15d8d4 (patch)
treedbe7e7baee7801a0ad804f7703362a11daf8c2b4 /Makefile.devel
parentf172f6177c17398600e62a3ae80f9b80650b3a99 (diff)
Added date stamp to version variable in full releases.
Diffstat (limited to 'Makefile.devel')
-rw-r--r--Makefile.devel7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.devel b/Makefile.devel
index 7108fc0f..2ea80a2d 100644
--- a/Makefile.devel
+++ b/Makefile.devel
@@ -57,12 +57,15 @@ PREREL_TAG_FILE=prereltag.txt
DOWNLOADHTML=devel.phtml
-
# This is used for full releases to control the tag name
# and distribution name. No editing of html is done
# when PRERELEASE_TAG != VERSION
VERSION=$(PRERELEASE_TAG)
+# Date stamp used in file if we're making a full release.
+DATEMSG=$(shell if [ $(PRERELEASE_TAG) = $(VERSION) ]; then echo; else date "+ on %a %e %b %Y"; fi)
+
+
NAME = ProofGeneral
LATESTNAME = $(NAME)-latest
DEVELLATESTNAME = $(NAME)-devel-latest
@@ -245,7 +248,7 @@ tag:
# Update the sources, this is almost always what we want to do.
if [ -z "$(NOCVS)" ] && [ -n "`cvs -n -q update`" ]; then cvs update -d; exit 1; fi
# Tag proof-site.el and ProofGeneral.spec
- (cd generic; mv $(VERSIONFILE) $(VERSIONFILE).old; sed -e 's/defconst $(VERSIONVARIABLE) \".*\"/defconst $(VERSIONVARIABLE) \"Proof General, Version $(VERSION) released by da. Email proofgen@dcs.ed.ac.uk.\"/g' $(VERSIONFILE).old > $(VERSIONFILE); rm $(VERSIONFILE).old)
+ (cd generic; mv $(VERSIONFILE) $(VERSIONFILE).old; sed -e 's/defconst $(VERSIONVARIABLE) \".*\"/defconst $(VERSIONVARIABLE) \"Proof General Version $(VERSION). Released by da$(DATEMSG).\"/g' $(VERSIONFILE).old > $(VERSIONFILE); rm $(VERSIONFILE).old)
(cd etc; mv ProofGeneral.spec ProofGeneral.spec.old; sed -e 's/Version:.*$$/Version: $(VERSION)/g' ProofGeneral.spec.old > ProofGeneral.spec; rm ProofGeneral.spec.old)
# Edit $(DOWNLOADHTML) only for prereleases.
# Careful: the sed command below relies on previous value of PRERELEASE_TAG.