summaryrefslogtreecommitdiff
path: root/mk/bulk/pre-build
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2000-12-31 17:38:32 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2000-12-31 17:38:32 +0000
commitc93e1e611db430ece90f980744bdff7fb79484e1 (patch)
treec9c9b6e0909f8b45e60acb1a38aab7d7f7ac2015 /mk/bulk/pre-build
parent21a0b1503b3a3bb458bf2ad2efa887437d974464 (diff)
downloadpkgsrc-c93e1e611db430ece90f980744bdff7fb79484e1.tar.gz
move the code which determines the BROKENFILE and BUILDLOG file names out
of the top level build script and into the {pre,post}-build scripts. This ensures that either of those scripts may be run directly and not rely on a variable being set by the top level script. Thanks to Hubert Feyrer for pointing out the problem in a private email. These changes do not require any user changes to the build.conf file and should be transparent to the user.
Diffstat (limited to 'mk/bulk/pre-build')
-rw-r--r--mk/bulk/pre-build12
1 files changed, 7 insertions, 5 deletions
diff --git a/mk/bulk/pre-build b/mk/bulk/pre-build
index 752579cebe6..de595a47a0b 100644
--- a/mk/bulk/pre-build
+++ b/mk/bulk/pre-build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: pre-build,v 1.8 2000/12/30 14:53:28 dmcmahill Exp $
+# $NetBSD: pre-build,v 1.9 2000/12/31 17:38:32 dmcmahill Exp $
#
# Clean up system to be ready for bulk pkg build
#
@@ -17,14 +17,16 @@ fi
PRUNEDISTFILES=${PRUNEDISTFILES:-"yes"}
+# 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 )`;
if [ "$BROKENF" = "" ]; then
- echo "Error: BROKENF must be set to the name of the .broken.files"
- echo " This should have happened in the top level build script"
+ echo "Had problems determining the name of the .broken.files"
exit 1
fi
+BLDLOG=`( cd $USR_PKGSRC/pkgtools/pkglint ; make show-var VARNAME=BUILDLOG )`;
if [ "$BLDLOG" = "" ]; then
- echo "Error: BLDLOG must be set to the name of the .make.files"
- echo " This should have happened in the top level build script"
+ echo "Had problems determining the name of the .make.files"
exit 1
fi