summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2007-01-28 19:23:22 +0000
committerkristerw <kristerw@pkgsrc.org>2007-01-28 19:23:22 +0000
commitd96a55141212398c263986869cd0a7250cd4f8fa (patch)
treeb2959b2190b5510852716d0b8246a612816e2bd0
parent63634167d10f81ed0754a7ab76a286ecbae4f847 (diff)
downloadpkgsrc-d96a55141212398c263986869cd0a7250cd4f8fa.tar.gz
Remove old .bulk-not_available (NOT_AVAILABLE_FILE) files that are left
from previous run.
-rw-r--r--mk/bulk/pre-build8
1 files changed, 7 insertions, 1 deletions
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"