aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts/distclean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/distclean.sh')
-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 8c3f773fc54..c24873c255c 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 ""