summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-11-05 02:20:52 +0000
committerrillig <rillig@pkgsrc.org>2005-11-05 02:20:52 +0000
commit74d06614c06a4a3b6cc7c15f849e2c67ce6bb35f (patch)
treeb8b01780a19d81897358bbd31121fd3873d4c9dc
parent0c15f61e9896d624a60dd88ef7960405686c6939 (diff)
downloadpkgsrc-74d06614c06a4a3b6cc7c15f849e2c67ce6bb35f.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.
-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