]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid false syntax-check failure in distcheck
authorPádraig Brady <P@draigBrady.com>
Fri, 3 Jul 2015 16:20:36 +0000 (17:20 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 3 Jul 2015 16:36:26 +0000 (17:36 +0100)
* cfk.mk (sc_tests_executable): Restrict the check to git files,
so we don't flag any gnulib files added to test/ during
`make distcheck`.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 329920761bfe4c65728a1ee3a240b53a63dd9e05..29649dccf618b9476997b3edf2767420e7c0dcfc 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -120,6 +120,8 @@ sc_tests_executable:
        @set -o noglob 2>/dev/null || set -f;                              \
        find_ext="-name '' "`printf -- "-o -name *%s " $(TEST_EXTENSIONS)`;\
        find $(srcdir)/tests/ \( $$find_ext \) \! -perm -u+x -print        \
+         | { sed "s|^$(srcdir)/||"; git ls-files $(srcdir)/tests/; }      \
+         | sort | uniq -d                                                 \
          | sed -e "s/^/$(ME): Please make test executable: /" | grep .    \
            && exit 1; :