summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorcjep <cjep>2004-06-23 11:13:12 +0000
committercjep <cjep>2004-06-23 11:13:12 +0000
commita6e5376251e7c792631581e92a6921895a1fd729 (patch)
tree9cab88f5e01be400072b7875956e738858f1c216 /mk
parented6f2bd9bc32453fbc26639b66c96e9a599b95d3 (diff)
downloadpkgsrc-a6e5376251e7c792631581e92a6921895a1fd729.tar.gz
Use TEST instead of [] when using -nt. This makes the section work on
SunOS.
Diffstat (limited to '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; \