diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-27 13:40:43 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-27 13:40:43 +0000 |
commit | d28d7b18145be6942adcc668c229f13f7b86202a (patch) | |
tree | f08207611552579b1168bfbcb750143fe2e427b1 | |
parent | 88a5f079b459f91627c19e2d1150dca345b18f95 (diff) | |
download | coreutils-d28d7b18145be6942adcc668c229f13f7b86202a.tar.xz |
(check-misc): Check for st_blocks, too.
-rw-r--r-- | src/Makefile.am | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 5cce284f2..d804e4133 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/")*$$// |