summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-03-01 17:02:10 +0000
committerTom Hacohen <tom@stosb.com>2013-03-01 17:02:10 +0000
commitbc1ec328d35b66abee18652a1e83e5e6ec77abbd (patch)
tree056848ec9e3a6195eae37146a21dc7a353447426 /m4
parentb8cee23050f12d15a271575115b251bedf545ace (diff)
downloadefl-bc1ec328d35b66abee18652a1e83e5e6ec77abbd.tar.gz
Fix revision fetching when not using git.
Diffstat (limited to 'm4')
-rw-r--r--m4/efl.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index 6bbb259472..eb7a4beeb1 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -25,7 +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([git rev-list --count HEAD | tr -d '\n']))dnl
+m4_define([dev_version], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | 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