summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-09-16 08:44:18 +0000
committerJim Meyering <jim@meyering.net>2006-09-16 08:44:18 +0000
commitadbad7626cbbf81745482b4ddb4a0bcea97a6db6 (patch)
tree7a9f9da46f8cc8812f72ab4078791bfac8b79dff
parentf9442110204f21b37a1f582d8df1d57f50736b3a (diff)
downloadcoreutils-adbad7626cbbf81745482b4ddb4a0bcea97a6db6.tar.xz
* Makefile.maint (sc_require_config_h, sc_prohibit_assert_without_use):
Discard stdout from the new use of grep.
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.maint4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a4891bab..524f368d9 100644
--- 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.
diff --git a/Makefile.maint b/Makefile.maint
index 06f5b2764..693b33711 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -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 \