mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(check-misc): Check for st_blocks, too.
This commit is contained in:
1 parent
88a5f079b4
commit
d28d7b1814
1 file changed
+5
@@ -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/")*$$//
|
||||
|
||||
Reference in new issue
Block a user