pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/bulk Added a command line option --config that allo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8b03231e6d35
branches:  trunk
changeset: 502486:8b03231e6d35
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Nov 05 02:20:52 2005 +0000

description:
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:

 mk/bulk/build |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r f6dddb31d2ae -r 8b03231e6d35 mk/bulk/build
--- a/mk/bulk/build     Sat Nov 05 02:12:56 2005 +0000
+++ b/mk/bulk/build     Sat Nov 05 02:20:52 2005 +0000
@@ -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@localhost>
@@ -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 @@
        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 @@
                shift
                ;;
 
+       --config|-c )
+               shift
+               BULK_BUILD_CONF=$1; shift
+               ;;
+
        -* )
                echo "unknown option:  $1"
                usage



Home | Main Index | Thread Index | Old Index