Added checks for the commands needed by sub-packaging scripts

This commit is contained in:
abcdefg30 2017-08-24 14:33:19 +02:00 committed by Paul Chote
parent 82e2484c01
commit 928ae7b336

View File

@ -6,6 +6,11 @@ if [ $# -ne "2" ]; then
exit 1
fi
command -v python >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires python."; exit 1; }
command -v make >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires make."; exit 1; }
command -v curl >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires curl."; exit 1; }
command -v makensis >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires makensis."; exit 1; }
# Set the working dir to the location of this script
cd "$(dirname $0)"