summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-13 17:26:10 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-13 17:27:18 +0200
commit7d78f8f57b5446e3ddfbb27cc8e9b48c23c52b45 (patch)
tree48e25d959e4856baecce8dbbf1db89d5d43a4148 /Makefile
parenteb5cd761fca41197dc35d42ab9e47b453621d3f7 (diff)
build: use git describe --always
Use git describe --always in the Makefile instead of git describe as it can fail otherwise. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7b3e85c..4e32f6f 100644
--- a/Makefile
+++ b/Makefile
@@ -159,7 +159,7 @@ GZIP = gzip --best -c
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 --not $(shell git describe --abbrev=0 --tags)
+GIT_LOG = git shortlog -n --not $(shell git describe --always --abbrev=0 --tags)
GIT_REM = git ls-files -o | xargs rm -rf
GIT_PEOPLE = git log --no-merges $(VERSION_STRING)..HEAD | grep Author: | cut -d: -f2 | \
cut -d\< -f1 | sort | uniq -c | sort -nr