[postgis-tickets] r15822 - Ignore generated files in check-no-trailing-blanks

Sandro Santilli strk at kbt.io
Tue Sep 26 01:26:42 PDT 2017


Author: strk
Date: 2017-09-26 01:26:42 -0700 (Tue, 26 Sep 2017)
New Revision: 15822

Modified:
   branches/2.4/GNUmakefile.in
Log:
Ignore generated files in check-no-trailing-blanks

Also be forgiving of a missing .gitignore (but then tests will
fail due to generated files possibly having trailing blanks)

Modified: branches/2.4/GNUmakefile.in
===================================================================
--- branches/2.4/GNUmakefile.in	2017-09-26 08:15:51 UTC (rev 15821)
+++ branches/2.4/GNUmakefile.in	2017-09-26 08:26:42 UTC (rev 15822)
@@ -39,7 +39,9 @@
 
 check-no-trailing-blanks:
 	! find . -name '*.c' -o -name '*.h' | \
-		grep -vf .gitignore | \
+		grep -v lwin_wkt_lex.c | \
+		grep -v lwin_wkt_parse | \
+		if test -f .gitignore; then grep -vf .gitignore; else cat; fi | \
 		xargs grep -Pn '[\t ]$$'
 
 installcheck:



More information about the postgis-tickets mailing list