From: Tom Hacohen Date: Fri, 1 Mar 2013 17:02:10 +0000 (+0000) Subject: Fix revision fetching when not using git. X-Git-Tag: submit/devel/efl/20131022.203902~1705 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc1ec328d35b66abee18652a1e83e5e6ec77abbd;p=platform%2Fupstream%2Fefl.git Fix revision fetching when not using git. --- diff --git a/m4/efl.m4 b/m4/efl.m4 index 6bbb259..eb7a4be 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