diff options
Diffstat (limited to 'libexec/build-clean')
-rwxr-xr-x | libexec/build-clean | 28 |
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 |