diff options
author | Jim Meyering <jim@meyering.net> | 2000-09-25 10:49:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-09-25 10:49:35 +0000 |
commit | 2da0b155371a67b0fcdf4f5ff094d047ba44cc3c (patch) | |
tree | 10316d134c703b7b053c8b0099a470542555fea8 | |
parent | 9191f089b9f63ac11a14cc05f0d46833d23c85a1 (diff) | |
download | coreutils-2da0b155371a67b0fcdf4f5ff094d047ba44cc3c.tar.xz |
(PREV_VERSION): Get the value from a file, rather
than trying to derive it from the current version number.
This is much more robust.
(alpha): Record just-released version number in `.version',
and commit (post-tag).
-rw-r--r-- | Makefile.maint | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint index ae94ead8d..7acdcd277 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -72,7 +72,7 @@ my-distcheck: writable-files po-check THIS_VERSION_REGEXP = $(subst .,\.,$(VERSION)) # FIXME: this works only for Gnits-style test releases. -PREV_VERSION := $(shell echo $(VERSION)|tr b-z a-y|sed 's/a$$//') +PREV_VERSION := $(shell cat .version) PREV_VERSION_REGEXP := $(shell echo $(PREV_VERSION)|sed 's/\./\\./g') v = Version @@ -162,6 +162,8 @@ alpha: writable-files po-check && xdelta delta -9 $(prev-tgz) $(distdir).tar.gz $(xd-delta) || : ln $(release-archive-dir)/$(xd-delta) . chmod a-w $(release-archive-dir)/$(xd-delta) + echo $(VERSION) > .version + cvs ci -m. .version @echo ===================================== @echo ===================================== @echo 'scp $(xd-delta) $(distdir).tar.gz \' |