summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2018-01-08 16:31:47 +0900
committerBenda Xu <heroxbd@gentoo.org>2018-01-08 16:52:23 +0900
commiteac65b0b4e1fb7fa67e1b3d3008fbc308edc9b06 (patch)
tree1ad0826d164b2087b11bc0d9cb7542c4951f369c
parentscripts/bootstrap-prefix.sh: remove TPREFIX logic. (diff)
downloadprefix-eac65b0b4e1fb7fa67e1b3d3008fbc308edc9b06.zip
prefix-eac65b0b4e1fb7fa67e1b3d3008fbc308edc9b06.tar.gz
prefix-eac65b0b4e1fb7fa67e1b3d3008fbc308edc9b06.tar.bz2
scripts/bootstrap-prefix.sh: require GNU Awk 4.
GNU Awk 3 does not switch on --non-decimal-data by default.
-rwxr-xr-xscripts/bootstrap-prefix.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index f64409e..f475083 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1190,7 +1190,7 @@ bootstrap_stage1() {
[[ $(tar --version 2>&1) == *GNU* ]] || (bootstrap_tar) || return 1
[[ $(patch --version 2>&1) == *"patch 2."[6-9]*GNU* ]] || (bootstrap_patch) || return 1
[[ $(grep --version 2>&1) == *GNU* ]] || (bootstrap_grep) || return 1
- [[ $(awk --version < /dev/null 2>&1) == *GNU* ]] || bootstrap_gawk || return 1
+ [[ $(awk --version < /dev/null 2>&1) == *GNU" Awk "[456789]* ]] || bootstrap_gawk || return 1
[[ $(LANG=C bash --version 2>&1) == "GNU bash, version 4."[23456789]* && ${CHOST} != *-aix* ]] \
|| [[ -x ${ROOT}/tmp/usr/bin/bash ]] \
|| (bootstrap_bash) || return 1