From: Jim Meyering Date: Sat, 16 Sep 2006 08:44:18 +0000 (+0000) Subject: * Makefile.maint (sc_require_config_h, sc_prohibit_assert_without_use): X-Git-Tag: v6.2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adbad7626cbbf81745482b4ddb4a0bcea97a6db6;p=thirdparty%2Fcoreutils.git * Makefile.maint (sc_require_config_h, sc_prohibit_assert_without_use): Discard stdout from the new use of grep. --- diff --git a/ChangeLog b/ChangeLog index 4a4891bab8..524f368d94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-09-16 Jim Meyering + + * Makefile.maint (sc_require_config_h, sc_prohibit_assert_without_use): + Discard stdout from the new use of grep. + 2006-09-15 Jim Meyering * bootstrap.conf (gnulib_modules): Add rename-dest-slash. diff --git a/Makefile.maint b/Makefile.maint index 06f5b27640..693b337117 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -147,7 +147,7 @@ sc_no_have_config_h: # Nearly all .c files must include . sc_require_config_h: - @if $(CVS_LIST_EXCEPT) | grep '\.c$$'; then \ + @if $(CVS_LIST_EXCEPT) | grep '\.c$$' > /dev/null; then \ grep -L '^# *include ' \ $$($(CVS_LIST_EXCEPT) | grep '\.c$$') \ | grep . && \ @@ -158,7 +158,7 @@ sc_require_config_h: # Prohibit the inclusion of assert.h without an actual use of assert. sc_prohibit_assert_without_use: - @if $(CVS_LIST_EXCEPT) | grep '\.c$$'; then \ + @if $(CVS_LIST_EXCEPT) | grep '\.c$$' > /dev/null; then \ files=$$(grep -l '# *include ' \ $$($(CVS_LIST_EXCEPT) | grep '\.c$$')) && \ grep -L '\