summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-03-15 14:33:12 +0100
committerDaniel Borkmann <dborkman@redhat.com>2013-03-15 14:33:12 +0100
commit4e0b58a016730ab9b3d817d3d4dcd4182d399f74 (patch)
tree7ec7ae3511c0a8a1e99dc4dc5f446708544b41fa
parent751c3e907432b9848f1b625a5e54fa2dcfab3b2d (diff)
build: get latest release tag via git-describe
To automatically create the shortlog for the .MAIL_MSG, we use git shortlog. However, we do not want to include old stuff, so let only commits pass that were between the previous release and now. (Untested for now, since there is no futher tag.) Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 339d05e..7571027 100644
--- a/Makefile
+++ b/Makefile
@@ -127,7 +127,7 @@ RMDIR = echo -e " RM\t$(1)" && rmdir --ignore-fail-on-non-empty $(1) 2> /dev/nu
GIT_ARCHIVE = git archive --prefix=netsniff-ng-$(VERSION_STRING)/ $(VERSION_STRING) | \
$(1) > ../netsniff-ng-$(VERSION_STRING).tar.$(2)
GIT_TAG = git tag -a $(VERSION_STRING) -s -m "tools: $(VERSION_STRING) release"
-GIT_LOG = git shortlog -n
+GIT_LOG = git shortlog -n --not $(shell git describe --abbrev=0 --tags)
export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION
export CROSS_COMPILE