OpenRCT2/build.sh

24 lines
437 B
Bash
Raw Normal View History

#!/bin/bash
set -e
if [[ ! -d build ]]; then
mkdir -p build
fi
pushd build
cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=Debug ..
make
popd
2014-09-30 20:11:44 +02:00
if [[ ! -h openrct2.dll ]]; then
ln -s build/openrct2.dll openrct2.dll
fi
if [[ -t 1 ]]; then
2014-05-27 13:24:25 +02:00
echo -e "\nDone! Run OpenRCT2 by typing:\n\n\033[95mwine openrct2.exe\n\033[0m"
else
2014-05-27 13:24:25 +02:00
echo -e "\nDone! Run OpenRCT2 by typing:\n\nwine openrct2.exe\n"
fi