pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/daemontools Sync file(1) test for shell scrip...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4a435ed6f177
branches:  trunk
changeset: 479896:4a435ed6f177
user:      snj <snj%pkgsrc.org@localhost>
date:      Wed Aug 25 17:20:56 2004 +0000

description:
Sync file(1) test for shell script with the one in subst.mk. Makes it
correctly identify svscanboot(8) as a shell script on IRIX.

Committed for schmonz.

diffstat:

 sysutils/daemontools/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d52b7ecbf104 -r 4a435ed6f177 sysutils/daemontools/Makefile
--- a/sysutils/daemontools/Makefile     Wed Aug 25 17:16:09 2004 +0000
+++ b/sysutils/daemontools/Makefile     Wed Aug 25 17:20:56 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2004/07/26 19:16:27 schmonz Exp $
+# $NetBSD: Makefile,v 1.15 2004/08/25 17:20:56 snj Exp $
 # FreeBSD Id: ports/sysutils/daemontools/Makefile,v 1.8 2000/12/03 05:16:41 steve Exp
 
 DISTNAME=      daemontools-0.76
@@ -49,7 +49,7 @@
 
 do-install:
        (while read cmd; do \
-         if ${FILE_CMD} ${CMDDIR}/$$cmd | ${GREP} -q "shell script"; then \
+         if ${FILE_CMD} ${CMDDIR}/$$cmd | ${EGREP} "(executable .* script|shell script|text)" >/dev/null 2>&1; then \
            ${INSTALL_SCRIPT} ${CMDDIR}/$$cmd ${PREFIX}/bin; \
          else \
            ${INSTALL_PROGRAM} ${CMDDIR}/$$cmd ${PREFIX}/bin; \



Home | Main Index | Thread Index | Old Index