summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2000-07-20 17:46:45 +0000
committerrh <rh@pkgsrc.org>2000-07-20 17:46:45 +0000
commit19b33bea078bed91dc7f91f4b6632f766d282eff (patch)
treee51d33555985bd24858b7d57446fbc30a9436850 /mk
parentebcef6eadfef276aab64d4cc2588efc5f7c3a96f (diff)
downloadpkgsrc-19b33bea078bed91dc7f91f4b6632f766d282eff.tar.gz
make the update target work with absolute pathnames in ${DDIR}
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 685c7ee32a7..57158b8c400 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.512 2000/07/20 12:33:43 rh Exp $
+# $NetBSD: bsd.pkg.mk,v 1.513 2000/07/20 17:46:45 rh Exp $
#
# This file is in the public domain.
#
@@ -1933,7 +1933,7 @@ update:
.endif
${_PKG_SILENT}${_PKG_DEBUG} \
[ ! -s ${DDIR} ] || for dep in `${CAT} ${DDIR}` ; do \
- (if cd "../../$${dep}" ; then \
+ (if cd ../.. && cd "$${dep}" ; then \
${ECHO_MSG} "${_PKGSRC_IN}> Installing in $${dep}" && \
if [ "${RESUMEUPDATE}" = "NO" ] ; then \
${MAKE} ${MAKEFLAGS} deinstall; \
@@ -1958,7 +1958,7 @@ clean-update:
${_PKG_SILENT}${_PKG_DEBUG} \
if [ -s ${DDIR} ] ; then \
for dep in `${CAT} ${DDIR}` ; do \
- (if cd "../../$${dep}" ; then \
+ (if cd ../.. && cd "$${dep}" ; then \
${MAKE} ${MAKEFLAGS} clean ; \
else \
${ECHO_MSG} "${_PKGSRC_IN}> Skipping removed directory $${dep}";\