From: Francois-Xavier Le Bail Date: Tue, 14 Feb 2023 18:55:54 +0000 (+0100) Subject: Makefile.in: Update whitespacecheck target to show spaces before tabs X-Git-Tag: tcpslice-1.7~48 X-Git-Url: https://git.tcpdump.org/tcpslice/commitdiff_plain/6f6c0cf0e2b28ed16c8e3a111bc04e670e77fac1 Makefile.in: Update whitespacecheck target to show spaces before tabs --- diff --git a/Makefile.in b/Makefile.in index 9307d55..0cc45be 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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)