]> The Tcpdump Group git mirrors - tcpslice/commitdiff
Makefile.in: Update whitespacecheck target to show spaces before tabs
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 14 Feb 2023 18:55:54 +0000 (19:55 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 14 Feb 2023 18:58:20 +0000 (19:58 +0100)
Makefile.in

index 9307d55b2f47d85de23426c7e0774937230ca652..0cc45bed40be7c57cdf193778e24c7764e9560e2 100644 (file)
@@ -253,6 +253,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
 
 depend:
        $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC)