summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-04-10 16:23:00 +0000
committerjschauma <jschauma>2004-04-10 16:23:00 +0000
commit5f610e9cad370238062f55959f14a8eddfd8acbc (patch)
tree1185d5d38d9f1868e08280a835bc5347884392a4 /mk
parenteffec66a3fa96b7792ce9c351210adc0de36e2da (diff)
downloadpkgsrc-5f610e9cad370238062f55959f14a8eddfd8acbc.tar.gz
According to egrep(1):
Portability note: unlike GNU grep, traditional grep did not con- form to POSIX.2, because traditional grep lacked a -q option and its -s option behaved like GNU grep's -q option. Shell scripts intended to be portable to traditional grep should avoid both -q and -s and should redirect output to /dev/null instead. And, guess what, that's exactly what we run into when we call IRIX' egrep(1) with '-q' (which it doesn't know). So let's follow this suggestion and use neither '-q' nor '-s' and redirect output to /dev/null instead.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/bsd.bulk-pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
index ba11e287a95..d38b846de5a 100644
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ b/mk/bulk/bsd.bulk-pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.bulk-pkg.mk,v 1.59 2004/04/09 18:43:14 jschauma Exp $
+# $NetBSD: bsd.bulk-pkg.mk,v 1.60 2004/04/10 16:23:00 jschauma Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
@@ -290,7 +290,7 @@ bulk-package:
fi; \
if ${PKG_INFO} -qe $$pkgname ; then \
${SHCOMMENT} "Remove only unneeded pkgs" ; \
- if ${EGREP} -q "^${PKGPATH} .* $$pkgdir( |$$)" ${DEPENDSFILE} ; then \
+ if ${EGREP} "^${PKGPATH} .* $$pkgdir( |$$)" ${DEPENDSFILE} >/dev/null 2>&1; then \
${ECHO_MSG} "BULK> ${PKGNAME} requires installed package $$pkgname ($$pkgdir) to build." ;\
else \
case "${BULK_PREREQ}" in \