summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-07-14 11:04:42 +0200
committerFabian Groffen <grobian@gentoo.org>2019-07-14 11:06:54 +0200
commit6ae39ca3ee36e9794788c1bc73edf4e35d3d0461 (patch)
treee1cb849aa1c5e47bf5c188be2a79959c296a0075
parentscripts/bootstrap-prefix: add python2_7 for clang-based targets (diff)
downloadprefix-6ae39ca3ee36e9794788c1bc73edf4e35d3d0461.tar.gz
prefix-6ae39ca3ee36e9794788c1bc73edf4e35d3d0461.tar.bz2
prefix-6ae39ca3ee36e9794788c1bc73edf4e35d3d0461.zip
scripts/auto-bootstraps/dobootstrap: parse default args in any orderHEADmaster
allow using default bitwidth combined with things like libressl Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/auto-bootstraps/dobootstrap6
1 files 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