mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-18 00:06:04 +00:00
Kill off bashisms in ./configure (thanks to Enrico Weigelt <weigelt@metux.de>).
This commit is contained in:
parent
f791f6b6bf
commit
e7e37942d9
3
configure
vendored
3
configure
vendored
@ -124,7 +124,8 @@ fi
|
||||
# Check bash is present, and at least version 3.0
|
||||
[ -x /bin/bash ] || do_error "bash 3.0 or above was not found in /bin/bash"
|
||||
bash_version=$(/bin/bash --version |head -n 1 |cut -d ' ' -f 4)
|
||||
[ ${bash_version//%.*} -ge 3 ] || do_error "bash 3.0 or above is needed (found ${bash_version})"
|
||||
bash_major=$(echo "${bash_version}" |sed -e 's/\..*//g;')
|
||||
[ ${bash_major} -ge 3 ] || do_error "bash 3.0 or above is needed (found ${bash_version})"
|
||||
|
||||
sed -r -e "s,@@BINDIR@@,${BINDIR},g;" \
|
||||
-e "s,@@LIBDIR@@,${LIBDIR},g;" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user