summaryrefslogtreecommitdiff
path: root/mk/find-prefix.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-12 21:56:11 +0000
committerjlam <jlam>2005-05-12 21:56:11 +0000
commit2f5c7ca633bf3023e4b5a0d52bdedcccb5cace28 (patch)
tree14b8421d4b29f0d072765cd1244e8bd632c159d2 /mk/find-prefix.mk
parent6df3d7d7833caa25fc77542f6f8704988d362c19 (diff)
downloadpkgsrc-2f5c7ca633bf3023e4b5a0d52bdedcccb5cace28.tar.gz
Adding "${GREP} ." into pipeline that I inadvertently left out when
moving the EVAL_PREFIX code from bsd.pkg.mk to find-prefix.mk.
Diffstat (limited to 'mk/find-prefix.mk')
-rw-r--r--mk/find-prefix.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/find-prefix.mk b/mk/find-prefix.mk
index 796b46573a3..6990fcfe137 100644
--- a/mk/find-prefix.mk
+++ b/mk/find-prefix.mk
@@ -1,4 +1,4 @@
-# $NetBSD: find-prefix.mk,v 1.1 2005/05/12 20:41:10 jlam Exp $
+# $NetBSD: find-prefix.mk,v 1.2 2005/05/12 21:56:11 jlam Exp $
#
# This is a "subroutine" that can be included to find the installation
# prefix of a package.
@@ -16,11 +16,11 @@
#
.for _def_ in ${FIND_PREFIX}
-. if !defined(_${_def_:C/=.*$//})
+. if !defined(${_def_:C/=.*$//})
${_def_:C/=.*$//}_DEFAULT?= ${LOCALBASE}
_${_def_:C/=.*$//}_cmd= \
${PKG_INFO} -qp ${_def_:C/^.*=//} 2>/dev/null | \
- ${AWK} '{ print $$2; exit }' || \
+ ${AWK} '{ print $$2; exit }' | ${GREP} . || \
${ECHO} ${${_def_:C/=.*$//}_DEFAULT:Q}
${_def_:C/=.*$//}= ${_${_def_:C/=.*$//}_cmd:sh}
. endif