aboutsummaryrefslogtreecommitdiff
path: root/Tools/scripts
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-05-10 09:14:40 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-05-10 09:14:40 +0000
commit11e6c088141eab75b9e71ea228cd2af7de20046e (patch)
tree482ef79d6be26c2a8958469d0ad4d2381a0e0f3c /Tools/scripts
parent827ddfb6b76ebdd55bbc3cd301c7ac70ebc9ede6 (diff)
downloadports-11e6c088141eab75b9e71ea228cd2af7de20046e.tar.gz
ports-11e6c088141eab75b9e71ea228cd2af7de20046e.zip
Notes
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/distclean.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/scripts/distclean.sh b/Tools/scripts/distclean.sh
index 8c3f773fc548..c24873c255cf 100755
--- a/Tools/scripts/distclean.sh
+++ b/Tools/scripts/distclean.sh
@@ -14,7 +14,7 @@
# Maxim Sobolev
# ----------------------------------------------------------------------------
#
-# $FreeBSD: /tmp/pcvs/ports/Tools/scripts/distclean.sh,v 1.12 2002-05-07 14:04:05 sobomax Exp $
+# $FreeBSD: /tmp/pcvs/ports/Tools/scripts/distclean.sh,v 1.13 2002-05-10 09:14:40 sobomax Exp $
#
# MAINTAINER= sobomax@FreeBSD.org
@@ -34,9 +34,12 @@ if [ ! -d ${PORTSDIR} ]; then
exit 1
fi
-DISTDIR=`(cd ${PORTSDIR} && make -V DISTDIR) 2>/dev/null`
+DISTDIR=`(make -V DISTDIR -f ${PORTSDIR}/Mk/bsd.port.mk) 2>/dev/null`
DISTDIR=${DISTDIR:-/usr/ports/distfiles}
+PORTSDIR="${PORTSDIR}/"
+DISTDIR="${DISTDIR}/"
+
echo "Assumes that your ports are in ${PORTSDIR} and distfiles in ${DISTDIR}."
echo ""