Added fail-fast code for required build tools.

This commit is contained in:
Sorin Sbarnea 2015-06-22 16:47:35 +01:00
parent a51272dbc1
commit b7ab395fc0

View File

@ -37,6 +37,19 @@
# way that it will continue to work even if it's executed manually by a developer
# or from a build automation system.
for DEP in nunit-console zip unzip mkisofs wget curl hg git patch
do
which -s $DEP || echo "ERROR: $DEP was not found, install it or add it to the PATH." && FATAL=1
done
if [ -z ${FATAL+x} ]; then
echo ""
else
echo "FATAL: One or more build tools were not found."
exit 1
fi
DEBUG=1
if [ -n "${DEBUG+xxx}" ];
then