From 160d559b81fd12c96f3b5e3a8a497208089508ad Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 1 Jan 2009 21:20:46 +0000 Subject: dependencies: simplistic SHELL = bash check --- toolchain/dependencies/dependencies.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'toolchain/dependencies/dependencies.sh') diff --git a/toolchain/dependencies/dependencies.sh b/toolchain/dependencies/dependencies.sh index 0e88d6967..98a9d6f92 100755 --- a/toolchain/dependencies/dependencies.sh +++ b/toolchain/dependencies/dependencies.sh @@ -246,6 +246,18 @@ if ! which awk > /dev/null ; then fi; echo "awk installed: Ok" +############################################################# +# +# check build system 'bash' +# +############################################################# +if ! $SHELL --version 2>&1 | grep -q '^GNU bash'; then + echo "bash installed: FALSE" + /bin/echo -e "\n\nYou must install 'bash' on your build machine\n"; + exit 1; +fi; +echo "bash installed: Ok" + ############################################################# # # check build system 'bison' -- cgit v1.2.3