From: Daniel Borkmann Date: Fri, 15 Mar 2013 13:33:12 +0000 (+0100) Subject: build: get latest release tag via git-describe X-Git-Tag: v0.5.8-rc1~438 X-Git-Url: https://repo.or.cz/w/netsniff-ng.git/commitdiff_plain/4e0b58a016730ab9b3d817d3d4dcd4182d399f74 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 --- diff --git a/Makefile b/Makefile index 339d05ed..75710275 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