uxn-utils/cli/arvelie/build.sh

26 lines
310 B
Bash
Raw Normal View History

2023-05-25 14:14:21 -04:00
#!/bin/sh -e
ID="arvelie"
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
SRC="${ID}.tal"
DST="${ID}.rom"
CPY="$HOME/roms"
2023-05-25 14:33:43 -04:00
ARG="2023-05-25"
2023-05-25 14:14:21 -04:00
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
$EMU $DST $ARG