28 lines
319 B
Bash
28 lines
319 B
Bash
|
#!/bin/sh -e
|
||
|
|
||
|
ASM="uxncli $HOME/roms/drifblim.rom"
|
||
|
EMU="uxn11"
|
||
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
||
|
|
||
|
ID="shavian"
|
||
|
SRC="${ID}.tal"
|
||
|
DST="${ID}.rom"
|
||
|
|
||
|
CPY="$HOME/roms"
|
||
|
ARG="6x13.txt"
|
||
|
|
||
|
if [[ "$*" == *"--lint"* ]]
|
||
|
then
|
||
|
$LIN $SRC
|
||
|
fi
|
||
|
|
||
|
$ASM $SRC $DST
|
||
|
|
||
|
if [[ "$*" == *"--save"* ]]
|
||
|
then
|
||
|
cp $DST $CPY
|
||
|
fi
|
||
|
|
||
|
cat 6x13.txt | $EMU $DST
|
||
|
|