aboutsummaryrefslogtreecommitdiff
path: root/libexec/build-clean
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-03-18 11:04:26 -0700
committerMark Ferrell <major@homeonderanged.org>2014-03-18 11:04:26 -0700
commitf097158d8eb5a84a7accc58a22d39ce70999f6d6 (patch)
tree7db4753ecb90dd36f52c7c013970bf061a6bfa08 /libexec/build-clean
parent8b684d6538eb4405ed8d6bf594a203f1d5892954 (diff)
Reorg build builtins
* Added a few new builtins to help performance in some minor use cases. * Move generic builtin routines to top of build script
Diffstat (limited to 'libexec/build-clean')
-rwxr-xr-xlibexec/build-clean28
1 files changed, 0 insertions, 28 deletions
diff --git a/libexec/build-clean b/libexec/build-clean
deleted file mode 100755
index b7c0927..0000000
--- a/libexec/build-clean
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env build
-
-eval $(build-query --environ "${1}")
-
-if [ -z "${NOCLEAN}" ]; then
- echo "cleaning: ${1}"
- if [ -f "${BUILDER_ATFDIR}/${CATEGORY}/${NAME}-${VERSION}-${RELEASE}.${ARCHIVE_FORMAT}" ]; then
- rm "${BUILDER_ATFDIR}/${CATEGORY}/${NAME}-${VERSION}-${RELEASE}.${ARCHIVE_FORMAT}" &
- fi
- if [ -f "${SYSROOT}/var/db/binpkgs/${CATEGORY}/${NAME}" ]; then
- cd "${SYSROOT}"
- # FIXME: we are failing to handle file collisions produce in
- # this file.
- cat "var/db/binpkgs/${CATEGORY}/${NAME}" | xargs -0 rm -f &
- fi
- if [ -d "${W}" ]; then
- rm -rf "${W}" &
- fi
-
- wait
-
- # Clobber our package marker.
- if [ -f "${SYSROOT}/var/db/binpkgs/${CATEGORY}/${NAME}" ]; then
- rm "${SYSROOT}/var/db/binpkgs/${CATEGORY}/${NAME}"
- fi
-fi
-
-# vim: filetype=sh