summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf>1999-04-08 07:51:21 +0000
committerhubertf <hubertf>1999-04-08 07:51:21 +0000
commit76e8cbef395d6b4ae36baf44bf06c76bec338feb (patch)
tree5f3680bd4d1ba1098583ac32ac83bc6022477e45
parent53c3343aa226a35dcb38e5f6f90f2423fd80c3ab (diff)
downloadpkgsrc-76e8cbef395d6b4ae36baf44bf06c76bec338feb.tar.gz
Prettify PKGSRCDIR - instead of /usr/pkgsrc/foo/bar/../.., just make it
/usr/pkgsrc (through make(1) macig).
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 9bd11119bae..7762115d20d 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.247 1999/04/06 14:11:10 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.248 1999/04/08 07:51:21 hubertf Exp $
#
# This file is in the public domain.
#
@@ -100,7 +100,7 @@ LOCALBASE?= ${DESTDIR}/usr/local
X11BASE?= ${DESTDIR}/usr/X11R6
CROSSBASE?= ${LOCALBASE}/cross
-PKGSRCDIR= ${.CURDIR}/../..
+PKGSRCDIR= ${.CURDIR:C|/[^/]*/[^/]*$||}
DISTDIR?= ${PKGSRCDIR}/distfiles
_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR}
PACKAGES?= ${PKGSRCDIR}/packages