tests: tweak po_check syntax check
authorJim Meyering <meyering@redhat.com>
Thu, 2 Apr 2009 14:51:11 +0000 (16:51 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 4 Apr 2009 08:49:36 +0000 (10:49 +0200)
* maint.mk (sc_po_check): Don't let dangling lib/*.[ch] links cause
spurious "grep: lib/file.h: No such file or directory" warnings.

maint.mk

index ac6a2bc..8b2ea6c 100644 (file)
--- a/maint.mk
+++ b/maint.mk
@@ -566,6 +566,7 @@ sc_po_check:
            | grep -v '^src/false\.c$$' | sort > $@-1;                  \
          files=;                                                       \
          for file in $$($(VC_LIST_EXCEPT)) lib/*.[ch]; do              \
+           test -r $$file || continue;                                 \
            case $$file in                                              \
              *.?|*.??) ;;                                              \
              *) continue;;                                             \