mu/subx/run
Kartik Agaram 5f21a5e788 4726
2018-10-27 22:46:23 -07:00

18 lines
248 B
Bash
Executable File

#!/usr/bin/env zsh
# Run commonly-used SubX programs using the SubX VM.
if [ $# -eq 0 ]
then
echo "run <binary> <args>"
exit 1
fi
if [[ $1 == 'ex'* ]]
then
CFLAGS=-g ./subx run examples/$*
exit $?
fi
CFLAGS=-g ./subx run apps/$*
exit $?