diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-29 18:29:17 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-29 18:38:56 +0200 |
commit | e003125b0400d055ba961b89eea094bf6774b1b2 (patch) | |
tree | d4c8b64232f1b1ac08387752c8517826f1ab1382 /Cmds | |
parent | 6d2916e324213f66b036d585f214161ece2d1b56 (diff) |
build: fix up GIT_PEOPLE and GIT_LOG macros
Fix them up so that a proper changelog can be generated automatically.
Also while at it, add two "hidden" targets that can be used to test
their output.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'Cmds')
-rw-r--r-- | Cmds | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -35,7 +35,7 @@ GZIP = gzip --best -c GIT_ARCHIVE = git archive --prefix=netsniff-ng-$(VERSION_SHORT)/ v$(VERSION_SHORT) | \ $(1) > ../netsniff-ng-$(VERSION_SHORT).tar.$(2) GIT_TAG = git tag -a v$(VERSION_SHORT) -s -m "$(VERSION_SHORT) release" -GIT_LOG = git shortlog -n --not $(shell git describe --always --abbrev=0 --tags) +GIT_LOG = git shortlog -n $(shell git tag | tail -n2 | head -1)..HEAD GIT_REM = git ls-files -o | xargs rm -rf -GIT_PEOPLE = git log --no-merges $(VERSION_SHORT)..HEAD | grep Author: | cut -d: -f2 | \ +GIT_PEOPLE = git log --no-merges $(shell git tag | tail -n2 | head -1)..HEAD | grep Author: | cut -d: -f2 | \ cut -d\< -f1 | sort | uniq -c | sort -nr |