[postgis-tickets] r15826 - Do not use .gitignore for checking trailing blank spaces

Sandro Santilli strk at kbt.io
Tue Sep 26 06:55:05 PDT 2017


Author: strk
Date: 2017-09-26 06:55:05 -0700 (Tue, 26 Sep 2017)
New Revision: 15826

Modified:
   trunk/GNUmakefile.in
Log:
Do not use .gitignore for checking trailing blank spaces

Manually ignore files instead. Re-using .gitignore patterns
isn't easy for grep.

Modified: trunk/GNUmakefile.in
===================================================================
--- trunk/GNUmakefile.in	2017-09-26 13:54:58 UTC (rev 15825)
+++ trunk/GNUmakefile.in	2017-09-26 13:55:05 UTC (rev 15826)
@@ -41,7 +41,8 @@
 	! find . -name '*.c' -o -name '*.h' | \
 		grep -v lwin_wkt_lex.c | \
 		grep -v lwin_wkt_parse | \
-		if test -f .gitignore; then grep -vf .gitignore; else cat; fi | \
+		grep -v postgis_config.h | \
+		grep -v postgis/sqldefines.h | \
 		xargs grep -n '[[:space:]]$$'
 
 installcheck:



More information about the postgis-tickets mailing list