summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrh <rh>1999-09-15 05:39:38 +0000
committerrh <rh>1999-09-15 05:39:38 +0000
commitd27c6d7ea509f031071c708ed039f7c68b766ee9 (patch)
tree3127d29f8638a59ec718069e1f91956ac9fd4c7e /mk
parentcc3fd357e138a60ee6bb1cdfd1a68fb9fec10322 (diff)
downloadpkgsrc-d27c6d7ea509f031071c708ed039f7c68b766ee9.tar.gz
In ${DDIR} creation, change ${GREP} to ${EGREP} and modify pattern to only
match package Makefiles. This fixes pkg/8396.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 33d1d76d15f..83f0b2ee025 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.338 1999/09/14 02:32:24 kim Exp $
+# $NetBSD: bsd.pkg.mk,v 1.339 1999/09/15 05:39:38 rh Exp $
#
# This file is in the public domain.
#
@@ -1643,7 +1643,8 @@ ${DDIR}: ${DLIST}
${_PKG_SILENT}${_PKG_DEBUG} \
ddir=`${SED} 's:-[^-]*$$::' <${DLIST}` ; \
if ${PKG_INFO} -b $${ddir} >/dev/null 2>&1 ; then \
- ${PKG_INFO} -b $${ddir} | ${GREP} Makefile | \
+ ${PKG_INFO} -b $${ddir} | \
+ ${EGREP} '^[^/]+/[^/]+/Makefile:' | \
${CUT} -d'/' -f1-2 >${DDIR} ; \
else \
${ECHO} >${DDIR} ; \