diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-12-02 02:31:33 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-19 00:58:43 +0200 |
commit | 62b7500e59a3048347c77565c63f95d8f0e14970 (patch) | |
tree | 3a71fd40270717486bfcec51fb119f8b12ad8145 | |
parent | 5dd8f90171e0d851ba4cef702d9f92fd8a2ff236 (diff) | |
download | ndim-git-utils-62b7500e59a3048347c77565c63f95d8f0e14970.tar.gz ndim-git-utils-62b7500e59a3048347c77565c63f95d8f0e14970.tar.xz ndim-git-utils-62b7500e59a3048347c77565c63f95d8f0e14970.zip |
Actually run "git tag"
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index aa48b71..8d4b98c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,11 +35,12 @@ if HAVE_NDIM_MAN2TXT endif # Requires git 1.5 to work properly. +GIT = git tag: test -d "$(top_srcdir)/.git" - @cd "$(top_srcdir)" && git status;: - @cd "$(top_srcdir)" && git-diff-files --quiet - @cd "$(top_srcdir)" && git-diff-index --cached --quiet HEAD + @cd "$(top_srcdir)" && $(GIT) status;: + @cd "$(top_srcdir)" && $(GIT) diff-files --quiet + @cd "$(top_srcdir)" && $(GIT) diff-index --cached --quiet HEAD test "x$$($(SED) '/^$(PACKAGE_TARNAME) $(PACKAGE_VERSION)$$/,$$ d' '$(top_srcdir)/NEWS')" = "x" @$(SED) -n '/^$(PACKAGE_TARNAME) $(PACKAGE_VERSION)$$/,/^$(PACKAGE_TARNAME) / p' '$(top_srcdir)/NEWS' \ | $(SED) '$$d' | $(SED) '$$ { /^$$/d }' \ @@ -50,7 +51,7 @@ tag: trap "rm $$msg" TERM QUIT ABRT INT; read ignore_this; \ args=""; \ test "x$$(echo "$(PACKAGE_VERSION)" | $(SED) 's/^[0-9]\{1,\}\.[0-9]\{1,\}//')" = "x" && args="-s -F $$msg"; \ - cd "$(top_srcdir)" && echo git tag $${args} "v$(PACKAGE_VERSION)"; rm "$$msg" + cd "$(top_srcdir)" && $(GIT) tag $${args} "v$(PACKAGE_VERSION)"; rm "$$msg" UPLOAD_DIR = upload-dir ALL_UPLOAD_FILES = $(UPLOAD_FILES) $(distdir).tar.bz2 |