From b548ef19e806ef16f558c541e000ea70dd703190 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Fri, 7 Jun 2013 14:16:56 +0200 Subject: Added a check for needed devtools, compilers etc. to mltk, exiting if a tool is not found. --- mltk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mltk b/mltk index 3f8442a0..590c1254 100755 --- a/mltk +++ b/mltk @@ -20,7 +20,12 @@ SELF="$(readlink -f $0)" ROOT_DIR="$(dirname "${SELF}")" MLTK_PID="$$" +# Checking for needed development tools, compilers etc. # Required: m4 make gcc g++ binutils +DEVTOOLS="gcc c++ g++ make m4 strip" # 'strip' as marker for binutils +for i in $DEVTOOLS; do + which "$i" 2>/dev/null 1>&2 || { echo "Essential development tool $i not found - exiting."; exit 1; } +done # Make apt-get install non-interactive when it comes to postinstall questions # ie. kdm asking which dm you want to set as default -- cgit v1.2.3-55-g7522