From f106baaabde0294f8dd6bef948e1295a1df580f4 Mon Sep 17 00:00:00 2001 From: kristerw Date: Sun, 28 Jan 2007 19:23:22 +0000 Subject: Remove old .bulk-not_available (NOT_AVAILABLE_FILE) files that are left from previous run. --- mk/bulk/pre-build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mk/bulk') diff --git a/mk/bulk/pre-build b/mk/bulk/pre-build index 249f92f646f..ca888a16bda 100644 --- a/mk/bulk/pre-build +++ b/mk/bulk/pre-build @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: pre-build,v 1.65 2007/01/24 02:48:51 rillig Exp $ +# $NetBSD: pre-build,v 1.66 2007/01/28 19:23:22 kristerw Exp $ # # Clean up system to be ready for bulk pkg build # @@ -34,6 +34,11 @@ if [ "$BROKENF" = "" ]; then echo "pre-build> Had problems determining the name of the .broken files" exit 1 fi +NOTAVAILF=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=NOT_AVAILABLE_FILE )`; +if [ "$NOTAVAILF" = "" ]; then + echo "pre-build> Had problems determining the name of the .bulk-not_available files" + exit 1 +fi BRKWRKLOG=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=BROKENWRKLOG )`; if [ "$BRKWRKLOG" = "" ]; then echo "pre-build> Had problems determining the name of the .broken.work files" @@ -167,6 +172,7 @@ rm -fr /tmp/mod* cd "${USR_PKGSRC}" echo "pre-build> Cleaning up leftover state files from previous runs" rm -f "${BULKFILESDIR}"/*/*/$BROKENF "${BULKFILESDIR}"/*/*/$BRKWRKLOG "${BULKFILESDIR}"/*/*/$BLDLOG +rm -f "${BULKFILESDIR}"/*/*/$NOTAVAILF rm -f "${BULKFILESDIR}/$BROKENF" "${BULKFILESDIR}/$BRKWRKLOG" "${BULKFILESDIR}/$BLDLOG" "$STARTFILE" -- cgit v1.2.3