diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-18 19:16:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-18 19:16:52 +0000 |
commit | 5c40aefbbe8f8ad8d4d3c9cbdb0159e5bb761ba5 (patch) | |
tree | 442b231ca35ae123a723ba999f8540a880f1bfac /mk | |
parent | 5422c0ba9088dcc742867ed1edea91243f9d8193 (diff) | |
download | pkgsrc-5c40aefbbe8f8ad8d4d3c9cbdb0159e5bb761ba5.tar.gz |
Output a more informative/desriptive error than:
cd: cd BUILDLINK_PREFIX.foo_not_found
We now say that the package wasn't installed at the time that we were
trying to buildlink its files.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index a1fefd0b842..10a6f704949 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.93 2004/02/18 14:23:43 jlam Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.94 2004/02/18 19:16:52 jlam Exp $ # # An example package buildlink3.mk file: # @@ -546,6 +546,13 @@ _BLNK_FILES_CMD.${_pkg_}+= ) ${_BLNK_COOKIE.${_pkg_}}: ${_PKG_SILENT}${_PKG_DEBUG} \ case ${BUILDLINK_PREFIX.${_pkg_}} in \ + *not_found) \ + ${ECHO} "${_pkg_} is not installed; can't buildlink files."; \ + ${FALSE}; \ + ;; \ + esac + ${_PKG_SILENT}${_PKG_DEBUG} \ + case ${BUILDLINK_PREFIX.${_pkg_}} in \ ${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \ *) buildlink_dir="${BUILDLINK_DIR}" ;; \ esac; \ |