From: Jim Meyering Date: Sat, 9 Sep 2006 16:18:57 +0000 (+0000) Subject: * Makefile.maint (sc_prohibit_assert_without_use): Likewise. X-Git-Tag: v6.2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f2530cf3a9d58707b80872e8418772e5bf0c395;p=thirdparty%2Fcoreutils.git * Makefile.maint (sc_prohibit_assert_without_use): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 5739850ee6..4896c20fce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ are no .m4 files. (sc_require_config_h): Skip this test if there are no version- controlled .c files. + (sc_prohibit_assert_without_use): Likewise. 2006-09-08 Jim Meyering diff --git a/Makefile.maint b/Makefile.maint index 33643ee390..06f5b27640 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -158,12 +158,15 @@ sc_require_config_h: # Prohibit the inclusion of assert.h without an actual use of assert. sc_prohibit_assert_without_use: - @files=$$(grep -l '# *include ' \ + @if $(CVS_LIST_EXCEPT) | grep '\.c$$'; then \ + files=$$(grep -l '# *include ' \ $$($(CVS_LIST_EXCEPT) | grep '\.c$$')) && \ - grep -L '\ but don't use it" \ - 1>&2; exit 1; } || : + grep -L '\ but don't use it" \ + 1>&2; exit 1; } || :; \ + else :; \ + fi sc_obsolete_symbols: @grep -nE '\<(HAVE''_FCNTL_H|O''_NDELAY)\>' \