Skip to content

Instantly share code, notes, and snippets.

@sentient06
Created December 3, 2024 10:09
Show Gist options
  • Save sentient06/e4b5a4853a2f3c36884c9ae2187fc012 to your computer and use it in GitHub Desktop.
Save sentient06/e4b5a4853a2f3c36884c9ae2187fc012 to your computer and use it in GitHub Desktop.
Classic Macintosh Projects - Script for building
#!/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