فهرست منبع

dependencies: check for awk

Peter Korsgaard 17 سال پیش
والد
کامیت
0c462a82ec
1فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 12 0
      toolchain/dependencies/dependencies.sh

+ 12 - 0
toolchain/dependencies/dependencies.sh

@@ -232,6 +232,18 @@ if [ ! -z "$CXXCOMPILER" ] ; then
 	echo "C++ compiler version '$CXXCOMPILER_VERSION':			Ok"
 fi
 
+#############################################################
+#
+# check build system 'awk'
+#
+#############################################################
+if ! which awk > /dev/null ; then
+	echo "awk installed:		    FALSE"
+	/bin/echo -e "\n\nYou must install 'awk' on your build machine\n";
+	exit 1;
+fi;
+echo "awk installed:					Ok"
+
 #############################################################
 #
 # check build system 'bison'