pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/bootstrap Allow mkbinarykit to pass down --compiler.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9598a9ec1e5b
branches:  trunk
changeset: 531514:9598a9ec1e5b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Aug 01 14:03:49 2007 +0000

description:
Allow mkbinarykit to pass down --compiler.

diffstat:

 bootstrap/mkbinarykit |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 63493995f359 -r 9598a9ec1e5b bootstrap/mkbinarykit
--- a/bootstrap/mkbinarykit     Wed Aug 01 12:21:56 2007 +0000
+++ b/bootstrap/mkbinarykit     Wed Aug 01 14:03:49 2007 +0000
@@ -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 @@
 prefix=/usr/pkg
 sysconfdir=$prefix/etc
 pkgdbdir=/var/db/pkg
+compiler=
 mkfile=
 mk_fragment=
 ignorecasecheck=no
@@ -136,6 +137,7 @@
        --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 [ -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"



Home | Main Index | Thread Index | Old Index