From 4e0b58a016730ab9b3d817d3d4dcd4182d399f74 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Fri, 15 Mar 2013 14:33:12 +0100 Subject: [PATCH] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT