1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Merge pull request #1731 from AnyOldName3/windows-pre-build-error-messages

Add easily understood error messages to the prebuild script instead o…
This commit is contained in:
Bret Curtis 2018-06-07 20:11:06 +02:00 committed by GitHub
commit c1b7fe4643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,22 @@
#!/bin/bash #!/bin/bash
MISSINGTOOLS=0
command -v 7z >/dev/null 2>&1 || { echo "Error: 7z (7zip) is not on the path."; MISSINGTOOLS=1; }
command -v cmake >/dev/null 2>&1 || { echo "Error: cmake (CMake) is not on the path."; MISSINGTOOLS=1; }
if [ $MISSINGTOOLS -ne 0 ]; then
exit 1
fi
WORKINGDIR="$(pwd)"
case "$WORKINGDIR" in
*[[:space:]]*)
echo "Error: Working directory contains spaces."
exit 1
;;
esac
set -euo pipefail set -euo pipefail
APPVEYOR=${APPVEYOR:-} APPVEYOR=${APPVEYOR:-}