aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2005-04-11 22:08:14 +0000
committerKris Kennaway <kris@FreeBSD.org>2005-04-11 22:08:14 +0000
commitaa820a71ce767cd017cca7ad95a5a507ff363d33 (patch)
tree6c34733d1eef884370a08f89366448c372c7a219 /Tools
parent5b07c7a8cf13466890a41a744180b927887f76c9 (diff)
downloadports-aa820a71ce767cd017cca7ad95a5a507ff363d33.tar.gz
ports-aa820a71ce767cd017cca7ad95a5a507ff363d33.zip
Use WRKDIRPREFIX instead of hardcoded value.
Clean up after we're done.
Notes
Notes: svn path=/head/; revision=133100
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/portbuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 42641e5f09ef..50198b1f2a39 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -275,7 +275,8 @@ rm -rf ${chroot}/usr/ports
# Don't build in a world-writable directory because some ports hardcode
# this path and try to load things from it at runtime, which is bad for
# user security
-mkdir ${chroot}/work
+rm -rf ${chroot}/${WRKDIRPREFIX}
+mkdir -p ${chroot}/${WRKDIRPREFIX}
if [ ! -z "${ccache_dir}" ]; then
mkdir -p ${chroot}/root/.ccache/
@@ -381,4 +382,5 @@ if [ "${error}" = 0 ]; then
error=$(cat ${chroot}/tmp/status)
fi
+rm -rf ${chroot}/${WRKDIRPREFIX}
exit $error