aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2005-04-12 06:08:14 +0800
committerkris <kris@FreeBSD.org>2005-04-12 06:08:14 +0800
commita2520f6cede9df42982af2f1390fed3556e471d3 (patch)
treeb827dbef12e535b4fc315ca134a514c97957be79 /Tools
parent6a4b611eb5c1e1cddd4311268a81b9d0989acd47 (diff)
downloadfreebsd-ports-gnome-a2520f6cede9df42982af2f1390fed3556e471d3.tar.gz
freebsd-ports-gnome-a2520f6cede9df42982af2f1390fed3556e471d3.tar.zst
freebsd-ports-gnome-a2520f6cede9df42982af2f1390fed3556e471d3.zip
Use WRKDIRPREFIX instead of hardcoded value.
Clean up after we're done.
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