pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/check It is worth a warning if a freshly installed ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/269f6ff57e3d
branches:  trunk
changeset: 514686:269f6ff57e3d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jun 16 12:03:38 2006 +0000

description:
It is worth a warning if a freshly installed file is not readable.

diffstat:

 mk/check/check-interpreter.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r b47f147dbbab -r 269f6ff57e3d mk/check/check-interpreter.mk
--- a/mk/check/check-interpreter.mk     Fri Jun 16 12:01:38 2006 +0000
+++ b/mk/check/check-interpreter.mk     Fri Jun 16 12:03:38 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-interpreter.mk,v 1.6 2006/06/14 15:09:34 jlam Exp $
+# $NetBSD: check-interpreter.mk,v 1.7 2006/06/16 12:03:38 rillig Exp $
 
 CHECK_INTERPRETER?=    no
 
@@ -27,9 +27,14 @@
                     "in ${PKGNAME}"
 .if !defined(NO_PKG_REGISTER)
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
+       set -e;                                                         \
        ${PKG_FILELIST_CMD} | ${SORT} | ${SED} 's,\\,\\\\,g' |          \
        while read file; do                                             \
                ${_CHECK_INTERP_SKIP_FILTER};                           \
+               if ${TEST} ! -r "$$file"; then                          \
+                       ${DELAYED_WARNING_MSG} "[check-interpreter.mk] File \"$$file\" cannot be read."; \
+                       continue;                                       \
+               fi;                                                     \
                ${SHCOMMENT} "[$$file]";                                \
                interp=`${SED} -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p' -e '1q' < "$$file"` \
                || {    ${DELAYED_WARNING_MSG} "[check-interpreter.mk] sed(1) failed for \"$$file\"."; \



Home | Main Index | Thread Index | Old Index