mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
Added fail-fast code for required build tools.
This commit is contained in:
parent
a51272dbc1
commit
b7ab395fc0
13
mk/build.sh
13
mk/build.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user