From a8eb731588eaa1d86080ad9c1857f37ca34372f0 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Sat, 14 Apr 2001 17:20:07 +0000 Subject: 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 --- mk/bulk/pre-build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mk/bulk') 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 + -- cgit v1.2.3