1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-17 09:06:50 +02:00

(check-misc): Check for use of `defined' in #define directives.

Change to $(srcdir) before running grep.
This commit is contained in:
Jim Meyering
2003-03-08 14:30:14 +00:00
parent eff5758aaf
commit 79065539dd
+3 -2
View File
@@ -211,8 +211,9 @@ check-README:
# 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 || :
cd $(srcdir); grep '^# *define *S_IS' $(SOURCES) && exit 1 || :
cd $(srcdir); grep st_blocks $(SOURCES) && exit 1 || :
cd $(srcdir); grep '^# *define .*defined' $(SOURCES) && exit 1 || :
# Extract the list of authors from each file.
sed_filter = s/^ *//;s/N_ (//;s/^"//;s/")*$$//