diff options
author | Luca Deri <deri@ntop.org> | 2015-05-27 09:20:51 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2015-05-27 09:20:51 +0200 |
commit | 22dc2dcb0584b958d419b422e20b2759901a835c (patch) | |
tree | f6418658652dd2ad6519f2393f86887fa53e6996 /configure.ac | |
parent | ca4fc876f8c86e80972b8eca37669751ae2f0732 (diff) |
GIT commit count fix that should work on all platforms (RedHat/CentOS included)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7152f2aa9..c4eae2bab 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |