summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-02-25 17:06:06 +0000
committerTom Hacohen <tom@stosb.com>2013-02-25 17:06:06 +0000
commite9d30220866be24c46da840db7372c821d068f09 (patch)
treee7d908beefd96de745720957600ddf06aefc7c5d /configure.ac
parent84bc17eb08437da037b01a087df47e4b0a25365c (diff)
Fixed rev part of the version to work with git.
Diffstat (limited to '')
-rw-r--r--configure.ac3
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 @@
3m4_define([v_maj], [1]) 3m4_define([v_maj], [1])
4m4_define([v_min], [7]) 4m4_define([v_min], [7])
5m4_define([v_mic], [99]) 5m4_define([v_mic], [99])
6m4_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'])) 6m4_define([v_rev], m4_esyscmd([git rev-list --count HEAD | tr -d '\n']))dnl
7m4_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
9dnl m4_undefine([v_rev]) 8dnl 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