aboutsummaryrefslogtreecommitdiffstats
path: root/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
parente655f0b7358765f02ea392971c6ddbf8518c37c8 (diff)
downloadefl-3a69dfcca1e404f40e38d7834db328e4c0eeb1a5.tar.gz
efl-3a69dfcca1e404f40e38d7834db328e4c0eeb1a5.tar.xz
efl-3a69dfcca1e404f40e38d7834db328e4c0eeb1a5.zip
Efl: Use git rev-list in order to get version instead of svnversion.
Diffstat (limited to '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 cd730b394..6bbb25947 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -25,8 +25,7 @@ AC_DEFUN([EFL_VERSION],
m4_define([v_maj], [$1])dnl
m4_define([v_min], [$2])dnl
m4_define([v_mic], [$3])dnl
-m4_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
-m4_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
+m4_define([dev_version], m4_esyscmd([git rev-list --count HEAD | tr -d '\n']))dnl
m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl
m4_define([v_rel], m4_if($4, dev, [], m4_ifblank($4, [], [-release $4])))dnl
m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl