diff options
author | Tom Hacohen <tom@stosb.com> | 2013-02-25 17:06:06 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2013-02-25 17:06:06 +0000 |
commit | e9d30220866be24c46da840db7372c821d068f09 (patch) | |
tree | e7d908beefd96de745720957600ddf06aefc7c5d /configure.ac | |
parent | 84bc17eb08437da037b01a087df47e4b0a25365c (diff) |
Fixed rev part of the version to work with git.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index dcb1390c5..e5647f2fb 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -3,8 +3,7 @@ | |||
3 | m4_define([v_maj], [1]) | 3 | m4_define([v_maj], [1]) |
4 | m4_define([v_min], [7]) | 4 | m4_define([v_min], [7]) |
5 | m4_define([v_mic], [99]) | 5 | m4_define([v_mic], [99]) |
6 | m4_define([v_rev], m4_esyscmd([(LC_ALL=C svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) | 6 | m4_define([v_rev], m4_esyscmd([git rev-list --count HEAD | tr -d '\n']))dnl |
7 | m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) | ||
8 | ##-- When released, remove the dnl on the below line | 7 | ##-- When released, remove the dnl on the below line |
9 | dnl m4_undefine([v_rev]) | 8 | dnl m4_undefine([v_rev]) |
10 | ##-- When doing snapshots - change soname. remove dnl on below line | 9 | ##-- When doing snapshots - change soname. remove dnl on below line |