Просмотр исходного кода

dependencies: simplistic SHELL = bash check

Peter Korsgaard 17 лет назад
Родитель
Сommit
160d559b81
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      toolchain/dependencies/dependencies.sh

+ 12 - 0
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'