summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-01-11 12:03:18 +0000
committerobache <obache@pkgsrc.org>2011-01-11 12:03:18 +0000
commit257884020db655937175195a5f8a371e3a331d7b (patch)
tree9e848b02936e6e673b7a2f55ac9226eeff06dfbd /mk/check
parent3ec9e309f174250e1a714f1b0f0345d147ab4252 (diff)
downloadpkgsrc-257884020db655937175195a5f8a371e3a331d7b.tar.gz
Skip interpreter check unless regular file.
PR#44089, avoid warnings from broken symbolic link or link to a directory.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-interpreter.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk
index 32a81322d1c..85ee10b7ba8 100644
--- a/mk/check/check-interpreter.mk
+++ b/mk/check/check-interpreter.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-interpreter.mk,v 1.24 2010/08/24 19:08:29 bad Exp $
+# $NetBSD: check-interpreter.mk,v 1.25 2011/01/11 12:03:18 obache Exp $
#
# This file checks that after installation, all files of the package
# that start with a "#!" line will find their interpreter. Files that
@@ -49,6 +49,9 @@ _check-interpreter: error-check .PHONY
${_CHECK_INTERP_SKIP:@p@${p}) continue ;;@} \
*) ;; \
esac; \
+ if [ ! -f "$$file" ]; then \
+ continue; \
+ fi; \
if [ ! -r "$$file" ]; then \
${DELAYED_WARNING_MSG} "[check-interpreter.mk] File \"${DESTDIR}${PREFIX}/$$file\" cannot be read."; \
continue; \