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.
This commit is contained in:
parent
0b4b088a18
commit
f78237671a
1 changed files with 2 additions and 2 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue