summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2001-04-14 17:20:07 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2001-04-14 17:20:07 +0000
commit8cd8ec31013c09834d6e53d1666259dc1dbd1092 (patch)
tree72c6438b8645f6837558aeed20da0746451dc732 /mk/bulk
parent1ab530b4f1e13d4770ab27cfea86f643e4039524 (diff)
downloadpkgsrc-8cd8ec31013c09834d6e53d1666259dc1dbd1092.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
+