From 6f2530cf3a9d58707b80872e8418772e5bf0c395 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 9 Sep 2006 16:18:57 +0000 Subject: * Makefile.maint (sc_prohibit_assert_without_use): Likewise. --- ChangeLog | 1 + Makefile.maint | 13 ++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5739850ee..4896c20fc 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 33643ee39..06f5b2764 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)\>' \ -- cgit v1.2.3-70-g09d2