summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2016-10-17 12:30:52 -0200
committerBruno Dilly <bdilly@profusion.mobi>2016-10-17 13:05:44 -0200
commit22bf9627b1db9f397d989f6a7de855483b42df50 (patch)
treebf62399c03084946cdd1cfaedc9690edc716e4f9
parent65575a6c1b9ed8fb3dc2e87735e4a96652d56570 (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 5a2008d..2110441 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])