Skip to content
Snippets Groups Projects
Commit fea822bc authored by Oliver Behnke's avatar Oliver Behnke
Browse files

Report all missing tools at once

parent c79256de
No related branches found
No related tags found
No related merge requests found
......@@ -152,13 +152,17 @@ check_prerequisites()
# required toolchain
TOOLS="automake autoconf m4 cmake wget svn tar patch gcc g++ ld libtool libtoolize ar lex yacc pkg-config hg"
MISSING=""
for tool in $TOOLS; do
if ! ( type $tool >/dev/null 2>&1 ); then
echo "Missing \"$tool\" which is a required tool!" | tee -a $LOGFILE
echo "Required are: $TOOLS" | tee -a $LOGFILE
return 1
MISSING+="${tool} "
fi
done
if [[ -n $MISSING ]]; then
echo "Missing required tools: $MISSING" | tee -a $LOGFILE
return 1
fi
return 0
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment