From: Sandro Santilli Date: Tue, 26 Sep 2017 08:26:42 +0000 (+0000) Subject: Ignore generated files in check-no-trailing-blanks X-Git-Tag: 2.4.0rc3~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55c8b416502a5c196c5ba6bf0c2bf67053907a23;p=postgis 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) git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@15822 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/GNUmakefile.in b/GNUmakefile.in index 2374fdcd6..605281655 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -39,7 +39,9 @@ check: all docs-check check-no-trailing-blanks 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: