#!/bin/sh
set -e
case "$1" in
"build")
cd ..
make
make osx-bundle
cd src
open ../*.app
;;
"build-gdb")
gdb ../*.app/Contents/MacOS/aegisub
"gdb")
*)
esac