diff options
author | kris <kris@FreeBSD.org> | 2006-01-22 12:54:49 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2006-01-22 12:54:49 +0800 |
commit | 90db1ed0894de8d8a1e17161de4eac7622d4223c (patch) | |
tree | abdf1c5fc0436c3b7f9700a3c12a21922b0931e7 /Tools/portbuild | |
parent | edcad152acfb49ec9a19c107493af5e55abf1b80 (diff) | |
download | freebsd-ports-gnome-90db1ed0894de8d8a1e17161de4eac7622d4223c.tar.gz freebsd-ports-gnome-90db1ed0894de8d8a1e17161de4eac7622d4223c.tar.zst freebsd-ports-gnome-90db1ed0894de8d8a1e17161de4eac7622d4223c.zip |
Pull in buildenv for LOCALBASE/X11BASE locations
Don't bother cleaning up doc mounts, they are not needed.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/clean-chroot | 6 |
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 |