+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.
# 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 . && \
# 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 \