summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2005-11-05 02:20:52 +0000
committerrillig <rillig>2005-11-05 02:20:52 +0000
commitf4925a71161a165e751da6e85db887d77d8bd1dd (patch)
treeb8b01780a19d81897358bbd31121fd3873d4c9dc /mk
parentd5872a4d2e6abae0bf7ec4d733c481cfddaaa996 (diff)
downloadpkgsrc-f4925a71161a165e751da6e85db887d77d8bd1dd.tar.gz
Added a command line option --config that allows to specify a custom
build.conf file. The only way to do this before had been to set the (undocumented) environment variable BULK_BUILD_CONF. This is a conservative extension.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/build12
1 files changed, 10 insertions, 2 deletions
diff --git a/mk/bulk/build b/mk/bulk/build
index 44d17300d1f..3713504e05e 100644
--- a/mk/bulk/build
+++ b/mk/bulk/build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: build,v 1.58 2005/11/02 05:33:38 tv Exp $
+# $NetBSD: build,v 1.59 2005/11/05 02:20:52 rillig Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
@@ -37,7 +37,7 @@
usage() {
echo "Usage:"
echo " $0 [-m | --mirror_only] [-r | --restart | restart]"
- echo " [-s | --specific-pkgs]"
+ echo " [-s | --specific-pkgs] [-c|--config <fname>]"
echo " $0 -h|--help"
echo " "
echo "Runs a bulk pkgsrc build."
@@ -72,6 +72,9 @@ usage() {
echo " finished, it will put the results into a file"
echo " (FTP/pkgsrc-results.txt)."
echo " "
+ echo " -c|--config <file> Load the following configuration file instead"
+ echo " of the default one."
+ echo ""
}
restart=no
@@ -109,6 +112,11 @@ while [ ${#} -ge 1 ] ; do
shift
;;
+ --config|-c )
+ shift
+ BULK_BUILD_CONF=$1; shift
+ ;;
+
-* )
echo "unknown option: $1"
usage