summaryrefslogtreecommitdiff
path: root/m4/efl.m4
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-02-15 16:13:04 +0000
committerTom Hacohen <tom@stosb.com>2013-02-15 16:13:50 +0000
commit3a69dfcca1e404f40e38d7834db328e4c0eeb1a5 (patch)
tree2791316a5a4f21c13583b2d09b338746379ae99f /m4/efl.m4
parente655f0b7358765f02ea392971c6ddbf8518c37c8 (diff)
Efl: Use git rev-list in order to get version instead of svnversion.
Diffstat (limited to 'm4/efl.m4')
-rw-r--r--m4/efl.m43
1 files changed, 1 insertions, 2 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index cd730b3948..6bbb259472 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -25,8 +25,7 @@ AC_DEFUN([EFL_VERSION],
25m4_define([v_maj], [$1])dnl 25m4_define([v_maj], [$1])dnl
26m4_define([v_min], [$2])dnl 26m4_define([v_min], [$2])dnl
27m4_define([v_mic], [$3])dnl 27m4_define([v_mic], [$3])dnl
28m4_define([dev_version], m4_esyscmd([(LC_ALL=C svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | cut -d: -f2 | tr -d ' :MSP\n']))dnl 28m4_define([dev_version], m4_esyscmd([git rev-list --count HEAD | tr -d '\n']))dnl
29m4_if(dev_version, [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']))])dnl
30m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl 29m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl
31m4_define([v_rel], m4_if($4, dev, [], m4_ifblank($4, [], [-release $4])))dnl 30m4_define([v_rel], m4_if($4, dev, [], m4_ifblank($4, [], [-release $4])))dnl
32m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl 31m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl