From bae2f4f4ab0aa94365e8b3e5ab531b30b0366dd2 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 26 Sep 2017 08:15:51 +0000 Subject: [PATCH] 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/trunk@15821 b70326c6-7e19-0410-871a-916f4a2858ee --- GNUmakefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.40.0