diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-01 14:03:49 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-01 14:03:49 +0000 |
commit | 501d7d17a48327a89fb86117a057a66c2ce485a3 (patch) | |
tree | 953edbe1ce23b1cbfb73dfeaa774b3f0c0835079 /bootstrap | |
parent | 4db0539a2bd0689f521ac871ccefd5a3bff42f10 (diff) | |
download | pkgsrc-501d7d17a48327a89fb86117a057a66c2ce485a3.tar.gz |
Allow mkbinarykit to pass down --compiler.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/mkbinarykit | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap/mkbinarykit b/bootstrap/mkbinarykit index 905532705f0..45a6bb8e389 100755 --- a/bootstrap/mkbinarykit +++ b/bootstrap/mkbinarykit @@ -1,6 +1,6 @@ #!/bin/sh -# $NetBSD: mkbinarykit,v 1.24 2007/07/29 17:09:52 joerg Exp $ +# $NetBSD: mkbinarykit,v 1.25 2007/08/01 14:03:49 joerg Exp $ # # Make a binary bootstrap kit and place it in targetdir (or current # working directory if not specified). The mk.conf.example file is @@ -62,6 +62,7 @@ date=`date +%Y%m%d` prefix=/usr/pkg sysconfdir=$prefix/etc pkgdbdir=/var/db/pkg +compiler= mkfile= mk_fragment= ignorecasecheck=no @@ -136,6 +137,7 @@ while [ $# -gt 0 ]; do --mkconf=*) mkfile=`echo $1 | $sedprog -e 's|--mkconf=||'` ;; --mk-fragment=*) mk_fragment="$1" ;; + --compiler=*) compiler="$1" ;; --pkgdbdir=*) pkgdbdir=`echo $1 | $sedprog -e 's|--pkgdbdir=||'` ;; --ignore-case-check) ignorecasecheck=yes ;; --ignore-user-check) ignoreusercheck=yes ;; @@ -169,6 +171,9 @@ if [ "$build" != "no" ]; then if [ -n "${mk_fragment}" ]; then bootstrap_flags="$bootstrap_flags ${mk_fragment}" fi + if [ -n "${compiler}" ]; then + bootstrap_flags="$bootstrap_flags ${compiler}" + fi if [ "$ignoreusercheck" = "yes" ]; then bootstrap_flags="$bootstrap_flags --ignore-user-check" |