summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-08-24 14:07:06 +0200
committerJim Meyering <jim@meyering.net>2007-08-24 14:07:06 +0200
commitdbb6c7b2e75aa1853a154d9122b83f1ad6f0ea9b (patch)
tree274b96bf4db949fdb48835df0e2ac6bba9bba0ed /Makefile.maint
parent90b11ce6651b65488ddc777a439aaca414fdcf31 (diff)
downloadcoreutils-dbb6c7b2e75aa1853a154d9122b83f1ad6f0ea9b.tar.xz
Arrange to use tag names like vM.N, rather than COREUTILS-M_N.
* Makefile.maint (this-vc-tag) [git]: Simply use v$(VERSION). (this-vc-tag-regexp): New variable. (vc-tag-check): Use it, rather than $(this-vc-tag).
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.maint b/Makefile.maint
index 3c43bd583..65e944dd1 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -44,9 +44,15 @@ endif
PREV_VERSION := $(shell cat $(prev_version_file))
VERSION_REGEXP = $(subst .,\.,$(VERSION))
+ifeq ($(VC),$(GIT))
+this-vc-tag = v$(VERSION)
+this-vc-tag-regexp = v$(VERSION_REGEXP)
+else
tag-package = $(shell echo "$(PACKAGE)" | tr '[:lower:]' '[:upper:]')
tag-this-version = $(subst .,_,$(VERSION))
this-vc-tag = $(tag-package)-$(tag-this-version)
+this-vc-tag-regexp = $(this-vc-tag)
+endif
my_distdir = $(PACKAGE)-$(VERSION)
# Old releases are stored here.
@@ -513,10 +519,10 @@ copyright-check:
vc-tag-check:
used=no; \
if $(VC) --help | grep CVS; then \
- $(CVS) -n log -h README|grep -e $(this-vc-tag): >/dev/null \
+ $(CVS) -n log -h README|grep -e $(this-vc-tag-regexp): >/dev/null \
&& used=yes; \
else \
- $(GIT) tag -l '^$(this-vc-tag)$$' && used=yes; \
+ $(GIT) tag -l '^$(this-vc-tag-regexp)$$' && used=yes; \
fi; \
if test "$$used" = yes; then \
echo "$(this-vc-tag) has already been used; not tagging" 1>&2; \