From: Jim Meyering Date: Mon, 27 Jan 2003 13:40:43 +0000 (+0000) Subject: (check-misc): Check for st_blocks, too. X-Git-Tag: COREUTILS-4_5_5~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d28d7b18145be6942adcc668c229f13f7b86202a;p=platform%2Fupstream%2Fcoreutils.git (check-misc): Check for st_blocks, too. --- diff --git a/src/Makefile.am b/src/Makefile.am index 5cce284..d804e41 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -205,9 +205,14 @@ check-README: # Make sure we don't define any S_IS* macros in src/*.c files. # Not a big deal, but they're already defined via system.h. +# +# Also make sure we don't use st_blocks. Use ST_NBLOCKS instead. +# This is a bit of a kludge, since it prevents use of the string +# even in comments, but for now it does the job with no false positives. .PHONY: check-misc check-misc: grep '^# *define *S_IS' $(SOURCES) && exit 1 || : + grep st_blocks $(SOURCES) && exit 1 || : # Extract the list of authors from each file. sed_filter = s/^ *//;s/N_ (//;s/^"//;s/")*$$//