]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* Makefile.maint (sc_require_config_h, sc_prohibit_assert_without_use):
authorJim Meyering <jim@meyering.net>
Sat, 16 Sep 2006 08:44:18 +0000 (08:44 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 Sep 2006 08:44:18 +0000 (08:44 +0000)
Discard stdout from the new use of grep.

ChangeLog
Makefile.maint

index 4a4891bab83034feb9e2dbedac7eeaa801d8ccbe..524f368d942a5b7c40bd1cf246c6785e4536e3bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-16  Jim Meyering  <jim@meyering.net>
+
+       * Makefile.maint (sc_require_config_h, sc_prohibit_assert_without_use):
+       Discard stdout from the new use of grep.
+
 2006-09-15  Jim Meyering  <jim@meyering.net>
 
        * bootstrap.conf (gnulib_modules): Add rename-dest-slash.
index 06f5b2764024602ad3790c28bccdc0297a388a11..693b33711754b02cf59b84c2d8fb26033990f1d0 100644 (file)
@@ -147,7 +147,7 @@ sc_no_have_config_h:
 
 # Nearly all .c files must include <config.h>.
 sc_require_config_h:
-       @if $(CVS_LIST_EXCEPT) | grep '\.c$$'; then                     \
+       @if $(CVS_LIST_EXCEPT) | grep '\.c$$' > /dev/null; then         \
          grep -L '^# *include <config\.h>'                             \
                $$($(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 <assert\.h>'                     \
                    $$($(CVS_LIST_EXCEPT) | grep '\.c$$')) &&           \
          grep -L '\<assert (' $$files                                  \