|
From: U. A. E. <ull...@in...> - 2013-02-25 21:09:26
|
From: "U. Artie Eoff" <ull...@in...> When configuring the source outside of the git tree (i.e. git checkout-index ...), 'git rev-list --count HEAD' will fail. Thus, just set v_rev to 0 like we did when this was an svn managed project. Signed-off-by: U. Artie Eoff <ull...@in...> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e5647f2..494d0bf 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ m4_define([v_maj], [1]) m4_define([v_min], [7]) m4_define([v_mic], [99]) -m4_define([v_rev], m4_esyscmd([git rev-list --count HEAD | tr -d '\n']))dnl +m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl ##-- When released, remove the dnl on the below line dnl m4_undefine([v_rev]) ##-- When doing snapshots - change soname. remove dnl on below line -- 1.7.11.7 |