Modified GIT version format as shown ndpiReader -r

This commit is contained in:
Luca Deri
2015-05-21 19:33:35 +02:00
parent 9542227f2e
commit de03e1efe4
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -10,9 +10,11 @@ AC_PROG_CC
AX_PTHREAD
if test -d ".git"; then :
GIT_TAG=`git log -1 --format=%H`
GIT_TAG=`git log -1 --format=%h`
GIT_DATE=`git log -1 --format=%cd`
GIT_RELEASE=`git describe --tags --long --dirty --always`
GIT_NUM=`git rev-list HEAD --count`
GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`
GIT_RELEASE="${PACKAGE_VERSION}-${GIT_BRANCH}-${GIT_NUM}-${GIT_TAG}"
else
GIT_RELEASE="${PACKAGE_VERSION}"
GIT_DATE=`date`
+1 -1
View File
@@ -273,7 +273,7 @@ static void parseOptions(int argc, char **argv) {
break;
case 'r':
printf("ndpiReader, nDPI (%s)\n\n", ndpi_revision());
printf("ndpiReader - nDPI (%s)\n", ndpi_revision());
exit(0);
case 'v':