Display errors when there are trailing space(s)/tab(s).
[skip ci]
Cirrus CI: Add the "make releasecheck" command in the Linux task.
CI: Introduce and use TCPDUMP_CMAKE_TAINTED.
Makefile.in: Add "make -s install" in the releasecheck target.
+ Makefile.in: Add the whitespacecheck target.
TBD
Summary for 4.99.2 tcpdump release (so far!)
rm -rf "$$INSTALL_DIR" && \
echo '[$@] Done.'
+whitespacecheck:
+ @# trailing space(s)?
+ @if git grep -I -n ' $$' $$(git ls-files|grep -v '^tests/'); then \
+ echo 'Error: Trailing space(s).'; \
+ exit 1; \
+ fi
+ @# trailing tab(s)?
+ @# install-sh has a tab at the end of one line
+ @if git grep -I -n ' $$' $$(git ls-files|grep -vE '^(tests/|install-sh$$)'); then \
+ echo 'Error: Trailing tabs(s).'; \
+ exit 1; \
+ fi
+
testlist:
echo $(TEST_DIST)