summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorcjep <cjep@pkgsrc.org>2004-06-23 11:13:12 +0000
committercjep <cjep@pkgsrc.org>2004-06-23 11:13:12 +0000
commita957b1f62df451bf1f28ad2d72a9f30213a2ac9d (patch)
tree9cab88f5e01be400072b7875956e738858f1c216 /mk/bsd.pkg.mk
parent30dd78fab4509a107c700276eef04b78a045c998 (diff)
downloadpkgsrc-a957b1f62df451bf1f28ad2d72a9f30213a2ac9d.tar.gz
Use TEST instead of [] when using -nt. This makes the section work on
SunOS.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index fccdf31229b..aa09050e7fa 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -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 @@ _ACQUIRE_LOCK= \
${_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; \