summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2016-10-14 12:54:24 -0300
committerBruno Dilly <bdilly@profusion.mobi>2016-10-14 17:28:21 -0300
commit62b0b129326a382442887ba381793878dc61e252 (patch)
tree777964694ec6bac07d6194d884a8dbd70b659e75
parent417da4899ead718fcb414530f31c292922e55c19 (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.ac5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index bbf5355..1579ce0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,10 +3,9 @@
3m4_define([v_maj], [0]) 3m4_define([v_maj], [0])
4m4_define([v_min], [1]) 4m4_define([v_min], [1])
5m4_define([v_mic], [0]) 5m4_define([v_mic], [0])
6m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || 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
9m4_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
11dnl m4_define([relname], [ver-pre-svn-07]) 10dnl m4_define([relname], [ver-pre-svn-07])
12dnl m4_define([v_rel], [-release relname]) 11dnl m4_define([v_rel], [-release relname])