pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Use TEST instead of [] when using -nt. This makes t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e440a529ba1e
branches:  trunk
changeset: 476933:e440a529ba1e
user:      cjep <cjep%pkgsrc.org@localhost>
date:      Wed Jun 23 11:13:12 2004 +0000

description:
Use TEST instead of [] when using -nt. This makes the section work on
SunOS.

diffstat:

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

diffs (20 lines):

diff -r 7e7976d99702 -r e440a529ba1e mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Wed Jun 23 11:04:37 2004 +0000
+++ b/mk/bsd.pkg.mk     Wed Jun 23 11:13:12 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1468 2004/06/05 09:10:41 agc Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1469 2004/06/23 11:13:12 cjep Exp $
 #
 # This file is in the public domain.
 #
@@ -1789,8 +1789,8 @@
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
        ppid=`${PS} -p $$$$ -o ppid | ${AWK} 'NR == 2 { print $$1 }'`;  \
        while true; do                                                  \
-               if [ -f /var/run/dmesg.boot -a -f ${LOCKFILE} -a        \
-                    /var/run/dmesg.boot -nt ${LOCKFILE} ]; then        \
+               if ${TEST} -f /var/run/dmesg.boot -a -f ${LOCKFILE} -a  \
+                    /var/run/dmesg.boot -nt ${LOCKFILE}; then          \
                        ${ECHO} "=> Removing stale ${LOCKFILE}";        \
                        ${RM} ${LOCKFILE};                              \
                fi;                                                     \



Home | Main Index | Thread Index | Old Index