summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-24 14:42:35 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-24 14:42:35 +0000
commit890bebf04d540a10327bb274ac5c42419e0429f2 (patch)
tree081dd245846879b207584e00848dd0edef9d560e /Makefile
parent974648ccbcec1fd24f331a44dee8fbb0d870f2e4 (diff)
downloadATCD-890bebf04d540a10327bb274ac5c42419e0429f2.tar.gz
modified TIMESTAMP macro to update the third component, if there is one, of the version number in the VERSION file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1cd8b3e60ab..b7289bdced5 100644
--- a/Makefile
+++ b/Makefile
@@ -81,11 +81,19 @@ RELEASE_LIB_FILES = \
ACE_wrappers/include \
#### If creating the "official" ACE release, update the timestamp in VERSION.
-#### Detect if we are doing that by looking at the PWD.
+#### Detect if we are creating the "official" release by looking at the PWD.
#### To disable this feature, add "TIMESTAMP=" to the make command line.
+#### NOTE: if the version number in the VERSION file contains three components,
+#### e.g., 4.1.5, then the third one will be incremented. This assumes
+#### that alpha/beta releases are numbered with three components, and
+#### that final releases are not. So, if the version number is, e.g.,
+#### 4.2, it will not be modified because it is assumed to be for a
+#### final release.
ifeq ($(shell pwd),/project/adaptive/ACE_wrappers)
- TIMESTAMP = perl -pi -e 'BEGIN {chop ($$date=`/usr/bin/date`);} \
- s/(, released ).*/$$1$$date./' VERSION; \
+ TIMESTAMP = perl -pi -e \
+ 'BEGIN {chop ($$date=`/usr/bin/date`);} \
+ s/(ACE version \d+\.\d+\.)(\d+)/sprintf("$$1%d",$$2+1)/e; \
+ s/(, released ).*/$$1$$date./;' VERSION; \
cvs commit -m'make release: updated timestamp' VERSION; \
chmod 644 VERSION;
else