summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-05 12:23:53 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-05 12:23:53 +0100
commite5c8da07a43b0a3af9994ceda31113ccb842db8e (patch)
tree6f66632de76bb940257d875471fa7fd34aa675ca
parentsys-libs/ncurses: sync, multijob was removed (diff)
downloadprefix-e5c8da07a43b0a3af9994ceda31113ccb842db8e.tar.gz
prefix-e5c8da07a43b0a3af9994ceda31113ccb842db8e.tar.bz2
prefix-e5c8da07a43b0a3af9994ceda31113ccb842db8e.zip
scripts/bootstrap-prefix: don't rely on bash-4.2 features
-rwxr-xr-xscripts/bootstrap-prefix.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index e262ffba3d..78c62ea314 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1181,8 +1181,9 @@ bootstrap_stage1() {
[[ ${OFFLINE_MODE} ]] || type -P wget > /dev/null || (bootstrap_wget) || return 1
[[ $(sed --version 2>&1) == *GNU* ]] || (bootstrap_sed) || return 1
[[ $(m4 --version 2>&1) == *GNU*1.4.1?* ]] || (bootstrap_m4) || return 1
- [[ $(bison --version 2>&1) =~ GNU" "Bison") "(2.[3-7]|[3-9]) ]] \
- || [[ -x ${ROOT}/tmp/usr/bin/bison ]] \
+ [[ -x ${ROOT}/tmp/usr/bin/bison ]] \
+ || [[ $(bison --version 2>&1) == *GNU" "Bison") "2.[3-7]* ]] \
+ || [[ $(bison --version 2>&1) == *GNU" "Bison") "[3-9]* ]] \
|| (bootstrap_bison) || return 1
[[ $(uniq --version 2>&1) == *"(GNU coreutils) "[6789]* ]] \
|| (bootstrap_coreutils) || return 1