summaryrefslogtreecommitdiff
path: root/Cmds
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-30 14:19:28 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-30 14:24:45 +0200
commit7ca399bd639ab3059c80f2c0c946b64c06270b14 (patch)
treeafeaffc0ef57ce9e9d2eef70311eacf2c50a4d3d /Cmds
parentae55f524c92aadfae2a94947002c978d80320f32 (diff)
build: Use -n option to head command
Make the call to `head' equivalent to the one to `tail'. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Cmds')
-rw-r--r--Cmds4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cmds b/Cmds
index c0a9e22..f2fc8cb 100644
--- a/Cmds
+++ b/Cmds
@@ -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 $(shell git tag | tail -n2 | head -1)..HEAD
+GIT_LOG = git shortlog -n $(shell git tag | tail -n2 | head -n1)..HEAD
GIT_REM = git ls-files -o | xargs rm -rf
-GIT_PEOPLE = git log --no-merges $(shell git tag | tail -n2 | head -1)..HEAD | grep Author: | cut -d: -f2 | \
+GIT_PEOPLE = git log --no-merges $(shell git tag | tail -n2 | head -n1)..HEAD | grep Author: | cut -d: -f2 | \
cut -d\< -f1 | sort | uniq -c | sort -nr