commit:     6ae39ca3ee36e9794788c1bc73edf4e35d3d0461
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 14 09:04:42 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jul 14 09:06:54 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=6ae39ca3

scripts/auto-bootstraps/dobootstrap: parse default args in any order

allow using default bitwidth combined with things like libressl

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/auto-bootstraps/dobootstrap | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/scripts/auto-bootstraps/dobootstrap 
b/scripts/auto-bootstraps/dobootstrap
index 047846e5be..d4207a1a8b 100755
--- a/scripts/auto-bootstraps/dobootstrap
+++ b/scripts/auto-bootstraps/dobootstrap
@@ -184,19 +184,21 @@ case $1 in
                do_prepare "$2" ${3:-${BOOTSTRAP_DATE}}
                ;;
        *)
+               bitw=
                if [[ ${0} == /net/* ]] ; then
                        echo "internal host, activating local and DOPUBLISH"
                        export DOLOCAL=1
                        export DOPUBLISH=1
                        export GENTOO_MIRRORS="http://distfileslocal 
http://distfiles.gentoo.org";
                fi
-               for arg in "${@:2}" ; do
+               for arg in "${@:1}" ; do
                        case "${arg}" in
                                libressl)   export DOLIBRESSL=1      ;;
                                latesttree) export LATEST_TREE_YES=1 ;;
+                               32|64)      bitw=${arg}              ;;
                        esac
                done
-               do_prepare $1
+               do_prepare ${bitw}
                ;;
 esac
 

Reply via email to