]> granicus.if.org Git - postgis/commitdiff
Ignore generated files in check-no-trailing-blanks
authorSandro Santilli <strk@kbt.io>
Tue, 26 Sep 2017 08:15:51 +0000 (08:15 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 26 Sep 2017 08:15:51 +0000 (08:15 +0000)
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

index 2374fdcd689c0ba19b57c037a2aa7450b2847fdc..6052816555a63583ce54f9aeb99c7c2e95506257 100644 (file)
@@ -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: