]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Arrange to use tag names like vM.N, rather than COREUTILS-M_N.
authorJim Meyering <jim@meyering.net>
Fri, 24 Aug 2007 12:07:06 +0000 (14:07 +0200)
committerJim Meyering <jim@meyering.net>
Fri, 24 Aug 2007 12:07:06 +0000 (14:07 +0200)
* 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).

ChangeLog
Makefile.maint

index d03c121a0c990feb2a278ba677ca6de2c2fd3da8..5f7165dcc99c20252468789bdd9dde6562e2ff79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-24  Jim Meyering  <jim@meyering.net>
+
+       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).
+
 2007-08-23  Jim Meyering  <jim@meyering.net>
 
        * src/dircolors.hin: Add xterm-16color, xterm-88color and eterm-color.
index 3c43bd58321f884c8480e27a89395cf65436bedb..65e944dd13acd2f7ec0080441e40edfd78e2b4f9 100644 (file)
@@ -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; \