]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Makefile.in: Update whitespacecheck target to show spaces before tabs
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 15 Feb 2023 11:56:20 +0000 (12:56 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 15 Feb 2023 12:19:03 +0000 (13:19 +0100)
Makefile.in

index 05fdd25569133dafa4f06a9884041033c46c6a07..d18f9f7bb02f852257b5b997655a93194d99a24b 100644 (file)
@@ -567,6 +567,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)