aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-02-20 14:48:30 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-02-20 14:48:30 +0100
commit0d021f3174ac72dd2e1535770e02ac24409f4104 (patch)
treec693e5a409a98aa368f8d84109d0094f1a0c0128
parentc932261346863e79cba277ad06c3f5305a34274e (diff)
downloadtcpdump-0d021f3174ac72dd2e1535770e02ac24409f4104.tar.gz
Makefile.in: Update whitespacecheck target to show spaces before tabs
-rw-r--r--Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index ef9bd7fb..37567af4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -524,6 +524,11 @@ whitespacecheck:
echo 'Error: Trailing tabs(s).'; \
exit 1; \
fi
+ @# space(s) before tab(s)?
+ @if git grep -I -n '[ ][ ]' $$(git ls-files|grep -v '^tests/'); then \
+ echo 'Error: space(s) before tab(s).'; \
+ exit 1; \
+ fi
testlist:
echo $(TEST_DIST)