From: Ian Beckwith Date: Sat, 24 Apr 2010 20:56:30 +0000 (+0100) Subject: make check: avoid an error when no .git dir present. X-Git-Tag: stable/20100424~2 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=b219cbd;hp=709ad04a03a8e48a8fe188029a631a40615ce235;p=gnulib.git make check: avoid an error when no .git dir present. * Makefile (sc_prefer_ac_check_funcs_once): Don't run git grep if .git directory is not present (e.g. in stable snapshot tarballs). (cherry picked from commit 7ffc813d8166df4406a58ef0a0bd872dd65f60dc) --- diff --git a/ChangeLog b/ChangeLog index eb140456f..71d19cc43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-24 Ian Beckwith + + make check: avoid an error when no .git dir present. + * Makefile (sc_prefer_ac_check_funcs_once): Don't run git grep + if .git directory is not present (e.g. in stable snapshot tarballs). + 2010-04-24 Bruno Haible vasnprintf: Correct errno value in case of out-of-memory. diff --git a/Makefile b/Makefile index d2878d649..9ddfadc29 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ info html dvi pdf: check: sc_prefer_ac_check_funcs_once sc_prefer_ac_check_funcs_once: + [ -d .git ] && \ git grep -w -l AC_CHECK_FUNCS modules && \ { echo use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/ 1>&2; \ exit 1; } || :