summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-03-01 17:09:48 +0000
committerTom Hacohen <tom@stosb.com>2013-03-01 17:09:48 +0000
commit6e7c5296fc7d155abbfbe7cb185dc684de8b56d2 (patch)
treed0632e4711b5588e4dc7fbc1e1432a8e3436ced3
parent01a1175d7e800c2bc32e93f55f72af43463b85db (diff)
Fix revision fetching when not using git.
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e2555cd..371332f 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], [5]) 5m4_define([v_mic], [5])
6m4_define([v_rev], m4_esyscmd([(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 2>/dev/null || echo 0) | 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
9m4_undefine([v_rev]) 8m4_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