uxn-utils/cli/hx/build.sh

26 lines
303 B
Bash
Raw Normal View History

2023-03-17 13:28:04 -04:00
#!/bin/sh -e
2023-06-04 11:42:43 -04:00
ID="hx"
2023-03-17 13:28:04 -04:00
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
2023-06-04 11:42:43 -04:00
SRC="${ID}.tal"
DST="${ID}.rom"
2023-03-17 13:28:04 -04:00
CPY="$HOME/roms"
ARG="test.txt"
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
$EMU $DST $ARG