diff options
| author | Christian Rößler | 2013-06-07 14:16:56 +0200 |
|---|---|---|
| committer | Christian Rößler | 2013-06-07 14:16:56 +0200 |
| commit | b548ef19e806ef16f558c541e000ea70dd703190 (patch) | |
| tree | 49535811895e07544d9b0969402c08baa52c6f90 | |
| parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
| download | tm-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.
| -rwxr-xr-x | mltk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
