uxn-utils/cli/tgachr/build.sh

26 lines
307 B
Bash
Raw Normal View History

2023-11-27 16:43:11 -05:00
#!/bin/sh -e
ID="tgachr"
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
SRC="${ID}.tal"
DST="${ID}.rom"
CPY="$HOME/roms"
ARG="pict.tga"
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
$EMU $DST $ARG