pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Correct an error message to be more mean...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cc230822a265
branches: trunk
changeset: 461252:cc230822a265
user: jlam <jlam%pkgsrc.org@localhost>
date: Sat Sep 13 07:43:11 2003 +0000
description:
Correct an error message to be more meaningful, and optimize slightly by
avoiding a call to pkg_info(1).
diffstat:
mk/buildlink3/bsd.buildlink3.mk | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 097f1f258a11 -r cc230822a265 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk Sat Sep 13 07:30:23 2003 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk Sat Sep 13 07:43:11 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.10 2003/09/10 12:58:39 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.11 2003/09/13 07:43:11 jlam Exp $
#
# An example package buildlink3.mk file:
#
@@ -374,9 +374,8 @@
esac; \
cd ${BUILDLINK_PREFIX.${_pkg_}}; \
pkg_prefix=` \
- ${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} | \
- ${SED} -e "s,^[^/]*,," \
- -e "s,^${BUILDLINK_PREFIX.${_pkg_}},," \
+ ${ECHO} ${BUILDLINK_PREFIX.${_pkg_}} | \
+ ${SED} -e "s,^${BUILDLINK_PREFIX.${_pkg_}},," \
-e "s,^/,," \
`; \
case "$$pkg_prefix" in \
@@ -390,7 +389,7 @@
*) for file in $$files; do \
src="${BUILDLINK_PREFIX.${_pkg_}}/$$file"; \
if [ ! -f $$src ]; then \
- ${ECHO} "$${file}: not found" >> ${.TARGET}; \
+ ${ECHO} "$$src: not found" >> ${.TARGET}; \
continue; \
fi; \
if [ -z "${BUILDLINK_TRANSFORM.${_pkg_}}" ]; then \
Home |
Main Index |
Thread Index |
Old Index