summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-04-11 20:17:37 +0000
committerjschauma <jschauma>2004-04-11 20:17:37 +0000
commita5e3a7016018ccbf2da72122b4e8efd9f0a8c19a (patch)
treeaacf0d96791066b48bf462308251decd684c1a57
parent41b575e076fc603dcd59166a60940697c4731bbd (diff)
downloadpkgsrc-a5e3a7016018ccbf2da72122b4e8efd9f0a8c19a.tar.gz
egrep -x 'RE'
is the same as egrep '^RE$' Not all egrep's know the '-x' flag, so use the latter.
-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 0d55f53f5bb..a00849c57fe 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1438 2004/04/07 14:26:50 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1439 2004/04/11 20:17:37 jschauma Exp $
#
# This file is in the public domain.
#
@@ -2976,7 +2976,7 @@ _AIXLIB_AWK= \
do-shlib-handling:
.if ${SHLIB_HANDLING} == "YES"
${_PKG_SILENT}${_PKG_DEBUG} \
- sos=`${EGREP} -h -x '.*/lib[^/]+\.so' ${PLIST} || ${TRUE}`; \
+ sos=`${EGREP} -h '^.*/lib[^/]+\.so$$' ${PLIST} || ${TRUE}`; \
if [ "$$sos" != "" ]; then \
shlib_type=`${MAKE} ${MAKEFLAGS} show-shlib-type`; \
if [ "${SHLIB_PLIST_MODE}" = "0" ]; then \
@@ -2991,7 +2991,7 @@ do-shlib-handling:
else \
${RM} ${PLIST}.tmp ; \
fi ; \
- cnt=`${EGREP} -c -x '@exec[ ]*${LDCONFIG}' ${PLIST} || ${TRUE}`; \
+ cnt=`${EGREP} -c '^@exec[ ]*${LDCONFIG}$$' ${PLIST} || ${TRUE}`; \
if [ "${SHLIB_PLIST_MODE}" = "1" ]; then \
if [ $$cnt -eq 0 ]; then \
${ECHO} "@exec ${LDCONFIG}" >> ${PLIST}; \