From: Sandro Santilli Date: Tue, 26 Sep 2017 13:57:05 +0000 (+0000) Subject: Do not use .gitignore for checking trailing blank spaces X-Git-Tag: 2.4.0rc3~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10e36f8defc73038e11536da8bc8433acfaad13d;p=postgis Do not use .gitignore for checking trailing blank spaces Manually ignore files instead. Re-using .gitignore patterns isn't easy for grep. git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@15828 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/GNUmakefile.in b/GNUmakefile.in index faf4f292a..0c7fd8af9 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -41,7 +41,8 @@ check-no-trailing-blanks: ! 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: