]> granicus.if.org Git - postgis/commitdiff
Do not use .gitignore for checking trailing blank spaces
authorSandro Santilli <strk@kbt.io>
Tue, 26 Sep 2017 13:57:05 +0000 (13:57 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 26 Sep 2017 13:57:05 +0000 (13:57 +0000)
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

GNUmakefile.in

index faf4f292a3bfcd81b611179a2f68eb44f060538f..0c7fd8af90fe6c5fa210ed5ae1d833bf7133d556 100644 (file)
@@ -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: