aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2006-01-22 04:54:49 +0000
committerKris Kennaway <kris@FreeBSD.org>2006-01-22 04:54:49 +0000
commitc4f994d99ba0067cb4e281462862e5c046d38ca6 (patch)
tree301d8dc08d9df7dd6a5919954ce8ab6931ebbf10 /Tools
parentb713f62e3b5e273386a71c331e72921ee09b8d5a (diff)
downloadports-c4f994d99ba0067cb4e281462862e5c046d38ca6.tar.gz
ports-c4f994d99ba0067cb4e281462862e5c046d38ca6.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/clean-chroot6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/clean-chroot b/Tools/portbuild/scripts/clean-chroot
index b718bc141538..719e46f18d87 100755
--- a/Tools/portbuild/scripts/clean-chroot
+++ b/Tools/portbuild/scripts/clean-chroot
@@ -40,9 +40,11 @@ noclean=$4
pb=/var/portbuild
. ${pb}/${arch}/portbuild.conf
. ${pb}/${arch}/portbuild.$(hostname)
+. ${pb}/scripts/buildenv
+buildenv ${pb} ${arch} ${branch}
# directories to clean
-cleandirs="/usr/local /usr/X11R6 /compat /var/db/pkg"
+cleandirs="${LOCALBASE} ${X11BASE} /compat /var/db/pkg"
if [ ! -d "${chroot}" ]; then
exit 0
@@ -59,7 +61,7 @@ if [ ${arch} = "i386" ]; then
cleanup_mount ${chroot} /compat/linux/proc
fi
-for i in /a/ports /usr/opt/doc /usr/src /dev; do
+for i in /a/ports /usr/src /dev; do
cleanup_mount ${chroot} ${i}
done