2007-05-03 13:00:00 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Default flags
|
|
|
|
CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release"
|
|
|
|
|
|
|
|
# Make for windows and linux
|
|
|
|
cmake $CMFLAGS -D TARGETOS=Win32 . && make
|
2008-09-15 14:57:30 +01:00
|
|
|
cmake $CMFLAGS -D TARGETOS=Unix . && make
|
2007-05-03 13:00:00 +01:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
2007-05-03 14:21:43 +01:00
|
|
|
echo "---------------------------------------------------------"
|
2007-05-03 13:00:00 +01:00
|
|
|
echo "Built the Linux and Windows binaries"
|
|
|
|
|
|
|
|
# Copy to the correct locations
|
2007-05-21 12:24:19 +01:00
|
|
|
cp scyther-linux ../gui/Scyther/
|
|
|
|
cp scyther-w32.exe ../gui/Scyther/
|
2007-05-03 13:00:00 +01:00
|
|
|
|
|
|
|
# bonus...
|
|
|
|
cp scyther-linux ~/bin
|
|
|
|
|
2007-05-03 14:21:43 +01:00
|
|
|
echo Copied the files to their respective locations and \~/bin
|
|
|
|
echo "---------------------------------------------------------"
|
2007-05-03 13:00:00 +01:00
|
|
|
|