Created
December 3, 2024 10:09
-
-
Save sentient06/e4b5a4853a2f3c36884c9ae2187fc012 to your computer and use it in GitHub Desktop.
Classic Macintosh Projects - Script for building
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 1 ] ; then | |
echo "Syntax: $0 [project_name]" | |
exit 1 | |
fi | |
if [ ! -d "$1" ]; then | |
echo 'The specified folder does not exist' | |
exit 1 | |
fi | |
cd "$1" | |
rm -rf build | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_TOOLCHAIN_FILE=/Users/$(whoami)/Development/Classic/Retro68-build/toolchain/m68k-apple-macos/cmake/retro68.toolchain.cmake | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment