summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2001-04-14 17:20:07 +0000
committerdmcmahill <dmcmahill>2001-04-14 17:20:07 +0000
commitebf452dd9c70d10913f6dd3b7fd16c44b506d5ee (patch)
tree72c6438b8645f6837558aeed20da0746451dc732 /mk/bulk
parent26c47cc68d7c0a7cc52834fa9e853b959317f4ae (diff)
downloadpkgsrc-ebf452dd9c70d10913f6dd3b7fd16c44b506d5ee.tar.gz
allow for a pre-build.local script. If mk/bulk/pre-build.local exists,
then run it at the end of pre-build. This lets users do things like: echo "I do not have enough disk space to build this pig." \ > games/crafty-book-enormous/$BROKENF
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/pre-build9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/bulk/pre-build b/mk/bulk/pre-build
index b197831117b..60f41aff819 100644
--- a/mk/bulk/pre-build
+++ b/mk/bulk/pre-build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: pre-build,v 1.13 2001/04/02 14:25:24 hubertf Exp $
+# $NetBSD: pre-build,v 1.14 2001/04/14 17:20:07 dmcmahill Exp $
#
# Clean up system to be ready for bulk pkg build
#
@@ -24,7 +24,7 @@ PRUNELINKS=`echo $PRUNELINKS | tr "[:lower:]" "[:upper:]"`
# extract the name of the files used for the build log and broken build log.
# these have defaults set by bsd.bulk-pkg.mk and may be overridden in /etc/mk.conf
-BROKENF=`( cd $USR_PKGSRC/pkgtools/pkglint ; make show-var VARNAME=BROKENFILE )`;
+export BROKENF=`( cd $USR_PKGSRC/pkgtools/pkglint ; make show-var VARNAME=BROKENFILE )`;
if [ "$BROKENF" = "" ]; then
echo "Had problems determining the name of the .broken.files"
exit 1
@@ -149,3 +149,8 @@ rm -f .start.${arch}
mount -o noasync -u /usr
touch .start.${arch}
+
+if [ -f mk/bulk/pre-build.local ]; then
+ . mk/bulk/pre-build.local
+fi
+