(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 <ullysses.a.eoff@intel.com>
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