diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2001-01-22 22:43:10 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2001-01-22 22:43:10 +0000 |
commit | 39e5bd2d7c70faea8d2f34f5aa33d690dfb56c1f (patch) | |
tree | 41cb6ebd73e753fe0f744c4a4c333082cf86bd26 /mk | |
parent | 89d10cd1c9d86284779816dee78a32891b6b23b1 (diff) | |
download | pkgsrc-39e5bd2d7c70faea8d2f34f5aa33d690dfb56c1f.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.mk | 6 |
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 |