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

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


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

Modified:
   branches/2.4/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: branches/2.4/GNUmakefile.in
===================================================================
--- branches/2.4/GNUmakefile.in	2017-09-26 13:56:58 UTC (rev 15827)
+++ branches/2.4/GNUmakefile.in	2017-09-26 13:57:05 UTC (rev 15828)
@@ -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