scyther/src/subbuild-unix-w32.sh
ISSOtm 85ee989b5f Have build scripts fail on first failing command
This avoids spurious errors from trying to copy files that weren't built,
and mimics the behavior of other build systems
2020-11-10 12:03:02 +01:00

22 lines
446 B
Bash
Executable File

#!/bin/sh
set -e
# Default flags
CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release"
# Make for windows and linux
cmake $CMFLAGS -D TARGETOS=Win32 . && make
echo
echo
echo "---------------------------------------------------------"
echo "Built the Windows binary"
# Copy to the correct location
cp scyther-w32.exe ../gui/Scyther/
echo Copied the file to the gui/Scyther directory
echo "---------------------------------------------------------"