aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibexec/build-make-clean4
-rwxr-xr-xlibexec/build-make-distclean5
2 files changed, 5 insertions, 4 deletions
diff --git a/libexec/build-make-clean b/libexec/build-make-clean
index ddc000c..8c5834d 100755
--- a/libexec/build-make-clean
+++ b/libexec/build-make-clean
@@ -15,8 +15,8 @@ build_make_clean()
# this file.
cat "var/db/binpkgs/${CATEGORY}/${NAME}" | xargs -0 rm -f &
fi
- if [ -d "${W}" ]; then
- rm -rf "${W}" &
+ if [ -d "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" ]; then
+ rm -rf "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" &
fi
wait
diff --git a/libexec/build-make-distclean b/libexec/build-make-distclean
index ba39c6e..f3cc91a 100755
--- a/libexec/build-make-distclean
+++ b/libexec/build-make-distclean
@@ -14,8 +14,9 @@ build_make_distclean()
# this file.
cat "var/db/binpkgs/${CATEGORY}/${NAME}" | xargs -0 rm -f &
fi
- if [ -d "${W}" ]; then
- rm -rf "${W}" &
+
+ if [ -d "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" ]; then
+ rm -rf "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" &
fi
wait