summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2016-10-14 13:29:15 -0300
committerBruno Dilly <bdilly@profusion.mobi>2016-10-14 17:28:55 -0300
commit422fec37b4647e6cb8dd51bca4eeae45d958399e (patch)
treef54fe77994173f7c7d7a9ec502bc40dbe817d417
parent5f83334cb91cef39a264ff0aa0515b8f4e230fe6 (diff)
Stop using svnrevision
Instead use git rev-list just like other e repos. With that we'll get rid of tons of "sh: 1: svnversion: not found" messages when building it.
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 59da418..5793010 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,8 +3,7 @@
3m4_define([v_maj], [0]) 3m4_define([v_maj], [0])
4m4_define([v_min], [5]) 4m4_define([v_min], [5])
5m4_define([v_mic], [1]) 5m4_define([v_mic], [1])
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']))
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