pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Depending on whether a file is executable or not, i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5a190c9bca5
branches:  trunk
changeset: 506732:b5a190c9bca5
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 21 10:04:44 2006 +0000

description:
Depending on whether a file is executable or not, it is an error or a
warning if its first line starts with "#!", and the following word is
not an existing file. The package devel/apr installs some *.exp files
that start with "#!", but are not intended to be executed.

diffstat:

 mk/bsd.pkg.check.mk |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r ec4efec03a6f -r b5a190c9bca5 mk/bsd.pkg.check.mk
--- a/mk/bsd.pkg.check.mk       Sat Jan 21 09:02:16 2006 +0000
+++ b/mk/bsd.pkg.check.mk       Sat Jan 21 10:04:44 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.check.mk,v 1.25 2006/01/12 11:13:13 rillig Exp $
+# $NetBSD: bsd.pkg.check.mk,v 1.26 2006/01/21 10:04:44 rillig Exp $
 #
 # This Makefile fragment is included by bsd.pkg.mk and defines the
 # relevant variables and targets for the various install-time "check"
@@ -450,8 +450,12 @@
                "") continue;                                           \
                esac;                                                   \
                if ${TEST} ! -f "$$interp"; then                        \
-                       ${ECHO} "[bsd.pkg.check.mk] ERROR: File \"$$file\"'s interpreter \"$$interp\" does not exist." 1>&2; \
-                       exitcode=1;                                     \
+                       if ${TEST} -x "$$interp"; then                  \
+                               ${ECHO} "[bsd.pkg.check.mk] ERROR: The interpreter \"$$interp\" of \"$$file\" does not exist." 1>&2; \
+                               exitcode=1;                             \
+                       else                                            \
+                               ${ECHO} "[bsd.pkg.check.mk] WARNING: The interpreter \"$$interp\" of \"$$file\" does not exist." 1>&2; \
+                       fi;                                             \
                fi;                                                     \
          done;                                                         \
          exit $$exitcode; }



Home | Main Index | Thread Index | Old Index