diff options
author | obache <obache@pkgsrc.org> | 2011-01-11 12:03:18 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-01-11 12:03:18 +0000 |
commit | bb1dd394e5dcf66f69a2905b5de9c10d41c91695 (patch) | |
tree | 9e848b02936e6e673b7a2f55ac9226eeff06dfbd /mk/check | |
parent | 08eff56216955b9ca32a0dd3dc3062c9f56cc6e2 (diff) | |
download | pkgsrc-bb1dd394e5dcf66f69a2905b5de9c10d41c91695.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.mk | 5 |
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; \ |