uxn-utils/cli/checksum/build.sh

26 lines
309 B
Bash
Raw Permalink Normal View History

2023-03-17 13:13:40 -04:00
#!/bin/sh -e
2023-06-04 11:02:11 -04:00
ID="checksum"
2023-03-17 13:13:40 -04:00
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
2023-06-04 11:02:11 -04:00
SRC="${ID}.tal"
DST="${ID}.rom"
2023-03-17 13:13:40 -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