pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Only match the first result of "pkg_info...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92920c3d4e15
branches:  trunk
changeset: 466022:92920c3d4e15
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Jan 10 10:52:09 2004 +0000

description:
Only match the first result of "pkg_info -qp" in case there are weird
+CONTENT files out there with multiple @cwd lines.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 27b973d86821 -r 92920c3d4e15 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Sat Jan 10 09:55:09 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Sat Jan 10 10:52:09 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.43 2004/01/10 06:15:39 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.44 2004/01/10 10:52:09 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -229,7 +229,7 @@
 .    else
 .      if empty(BUILDLINK_PKGNAME.${_pkg_}:Mnot_found)
 BUILDLINK_PREFIX.${_pkg_}!=    \
-       ${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} | ${SED}  -e "s,^[^/]*,,"
+       ${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} | ${SED}  -e "s,^[^/]*,,;q"
 .      else
 BUILDLINK_PREFIX.${_pkg_}=     not_found
 .      endif



Home | Main Index | Thread Index | Old Index