summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2001-01-22 22:43:10 +0000
committerdmcmahill <dmcmahill>2001-01-22 22:43:10 +0000
commit4143a98a0d4213ce5279de5913a2ba7cbba01ca9 (patch)
tree41cb6ebd73e753fe0f744c4a4c333082cf86bd26 /mk
parent30b973f5986975289cc6f0529102211ce72f8c30 (diff)
downloadpkgsrc-4143a98a0d4213ce5279de5913a2ba7cbba01ca9.tar.gz
make the show-depends-dirs target be robust for depends which have
their directories specified as :../foo instead of :../../bar/foo
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 76b08717e8c..7465f62b972 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.647 2001/01/22 04:06:45 dmcmahill Exp $
+# $NetBSD: bsd.pkg.mk,v 1.648 2001/01/22 22:43:10 dmcmahill Exp $
#
# This file is in the public domain.
#
@@ -1316,14 +1316,16 @@ show-depends-dirs:
.else
${_PKG_SILENT}${_PKG_DEBUG} \
dlist="";\
+ thisdir=`pwd`;\
for reldir in ${DEPENDS:C/^[^:]*://:C/:.*$//} ${BUILD_DEPENDS:C/^[^:]*://:C/:.*$//} ;\
do \
- cd $$reldir ;\
+ cd $$thisdir/$$reldir ;\
PWD=`pwd` ;\
d=`dirname $$PWD` ;\
absdir=`basename $$d`/`basename $$PWD` ;\
dlist="$$dlist $$absdir";\
done ;\
+ cd $$thisdir ;\
${ECHO} "$$dlist"
.endif
.endif