Skip to content

Commit 8dab56e

Browse files
committed
Make find->tidy resilient to filenames with spaces
1 parent ff2616e commit 8dab56e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

mk/tests.mk

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,13 @@ ALL_HS := $(filter-out $(S)src/rt/valgrind/valgrind.h \
261261
tidy:
262262
@$(call E, check: formatting)
263263
$(Q)find $(S)src -name '*.r[sc]' \
264-
| grep '^$(S)src/jemalloc' -v \
265-
| grep '^$(S)src/libuv' -v \
266-
| grep '^$(S)src/llvm' -v \
267-
| grep '^$(S)src/gyp' -v \
268-
| grep '^$(S)src/libbacktrace' -v \
269-
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
264+
-and -not -regex '^$(S)src/jemalloc.*' \
265+
-and -not -regex '^$(S)src/libuv.*' \
266+
-and -not -regex '^$(S)src/llvm.*' \
267+
-and -not -regex '^$(S)src/gyp.*' \
268+
-and -not -regex '^$(S)src/libbacktrace.*' \
269+
-print0 \
270+
| xargs -0 -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
270271
$(Q)find $(S)src/etc -name '*.py' \
271272
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
272273
$(Q)find $(S)src/doc -name '*.js' \

0 commit comments

Comments
 (0)