GIT commit count fix that should work on all platforms (RedHat/CentOS included)

This commit is contained in:
Luca Deri
2015-05-27 09:20:51 +02:00
parent ca4fc876f8
commit 22dc2dcb05
5 changed files with 24 additions and 1 deletions
+5 -1
View File
@@ -12,7 +12,11 @@ AX_PTHREAD
if test -d ".git"; then :
GIT_TAG=`git log -1 --format=%h`
GIT_DATE=`git log -1 --format=%cd`
GIT_NUM=`git rev-list HEAD --count`
#
# On CentOS 6 `git rev-list HEAD --count` does not work
#
#
GIT_NUM=`git log --pretty=oneline | wc -l`
GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`
GIT_RELEASE="${PACKAGE_VERSION}-${GIT_BRANCH}-${GIT_NUM}-${GIT_TAG}"
else
Binary file not shown.
Binary file not shown.
+13
View File
@@ -0,0 +1,13 @@
HTTP 11 726 3
MDNS 8 952 4
DHCP 10 3420 1
STUN 689 85660 4
ICMP 10 700 1
SSL 8 589 2
DropBox 4 2176 1
Apple 127 28102 20
WhatsApp 182 25154 2
AppleiTunes 85 28087 2
Spotify 3 258 1
H323 70 9464 14
RTCP 44 7818 2
@@ -0,0 +1,6 @@
MDNS 2 202 2
DHCP 6 2052 1
DropBox 2 1088 1
Apple 50 23466 2
WhatsApp 32 3243 2
Spotify 1 86 1