16 lines
300 B
Bash
Executable File
16 lines
300 B
Bash
Executable File
#!/bin/sh
|
|
|
|
BIN="$HOME/w/uxn/bin"
|
|
DEST="run.rom"
|
|
|
|
if [ $# -lt 1 ]; then
|
|
echo "usage: $0 [-c] FILE.tal"
|
|
exit 1
|
|
fi
|
|
|
|
case "$1" in
|
|
-c) $BIN/uxnasm $2 $DEST && $BIN/uxncli $DEST;;
|
|
-s) $BIN/uxnasm $3 $DEST && $BIN/uxnemu -s $2 $DEST;;
|
|
*) $BIN/uxnasm $1 $DEST && $BIN/uxnemu $DEST;;
|
|
esac
|