diff --git a/src/build-mac-universal.sh b/src/build-mac-universal.sh index a932d1d..17ad051 100755 --- a/src/build-mac-universal.sh +++ b/src/build-mac-universal.sh @@ -1,7 +1,13 @@ #!/bin/sh -cmake -DTARGETOS=MacPPC . && make -cmake -DTARGETOS=MacIntel . && make -cmake . && make scyther-mac +# Default flags +CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release" + +# Make for ppc and intel, and combine into universal binary +cmake $CMFLAGS -D TARGETOS=MacPPC . && make +cmake $CMFLAGS -D TARGETOS=MacIntel . && make +cmake $CMFLAGS . && make scyther-mac + +# Copy to the correct locations ./copy2gui.sh diff --git a/src/build-unix-both.sh b/src/build-unix-both.sh index c1dac2e..94103ba 100755 --- a/src/build-unix-both.sh +++ b/src/build-unix-both.sh @@ -1,8 +1,12 @@ #!/bin/sh -cmake -DTARGETOS=Win32 . -make -cmake . -make +# Default flags +CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release" + +# Make for windows and linux +cmake $CMFLAGS -D TARGETOS=Win32 . && make +cmake $CMFLAGS . && make + +# Copy to the correct locations ./copy2gui.sh diff --git a/src/copy2gui.sh b/src/copy2gui.sh index beec4f5..c4ffda6 100755 --- a/src/copy2gui.sh +++ b/src/copy2gui.sh @@ -4,3 +4,8 @@ cp scyther-linux ../gui/Scyther/Bin cp scyther-w32.exe ../gui/Scyther/Bin cp scyther-mac ../gui/Scyther/Bin +# bonus... +cp scyther-linux ~/bin + +echo Copied the files to their respective locations and ~/bin +