diff options
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 |