From 3be7a4c82c39fe045d7e6b0047cfa867f749f068 Mon Sep 17 00:00:00 2001 From: agc Date: Thu, 18 Apr 2002 15:54:34 +0000 Subject: When creating the ${DLIST} file in the update target, don't create the ${WRKDIR} every time with "mkdir -p" - instead, use the ${WRKDIR} target, so that any symlinks to it are created properly. Also, when creating the ${DLIST} file in the update target, don't pipe the output of pkg_info -R through "tail -n +4" - simply use pkg_info -qR to achieve the same results. --- mk/bsd.pkg.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 43873c822d0..dee2d47eb72 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.964 2002/04/18 15:23:43 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.965 2002/04/18 15:54:34 agc Exp $ # # This file is in the public domain. # @@ -2643,11 +2643,9 @@ ${DDIR}: ${DLIST} fi ; \ done -${DLIST}: - ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} -p ${WRKDIR} +${DLIST}: ${WRKDIR} ${_PKG_SILENT}${_PKG_DEBUG} \ - { ${PKG_INFO} -R "${PKGWILDCARD}" || ${TRUE}; } | \ - ${TAIL} -n +4 >${DLIST} + { ${PKG_INFO} -qR "${PKGWILDCARD}" || ${TRUE}; } > ${DLIST} # The 'info' target can be used to display information about a package. info: uptodate-pkgtools -- cgit v1.2.3