uxn-utils/cli/uxnvm/build.sh

28 lines
341 B
Bash
Raw Normal View History

2023-07-13 01:54:31 -04:00
#!/bin/sh -e
ID="uxnvm"
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
SRC="${ID}.tal"
DST="${ID}.rom"
CPY="$HOME/roms"
2023-07-13 13:31:06 -04:00
ARG="opctest.rom"
2023-07-13 01:54:31 -04:00
uxnasm opctest.tal opctest.rom
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
$EMU $DST $ARG