summaryrefslogtreecommitdiffstats
path: root/mltk
diff options
context:
space:
mode:
authorChristian Rößler2013-06-07 14:16:56 +0200
committerChristian Rößler2013-06-07 14:16:56 +0200
commitb548ef19e806ef16f558c541e000ea70dd703190 (patch)
tree49535811895e07544d9b0969402c08baa52c6f90 /mltk
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-b548ef19e806ef16f558c541e000ea70dd703190.tar.gz
tm-scripts-b548ef19e806ef16f558c541e000ea70dd703190.tar.xz
tm-scripts-b548ef19e806ef16f558c541e000ea70dd703190.zip
Added a check for needed devtools, compilers etc. to mltk, exiting
if a tool is not found.
Diffstat (limited to 'mltk')
-rwxr-xr-xmltk5
1 files changed, 5 insertions, 0 deletions
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