uxn-utils/cli/opctest/build.sh

26 lines
268 B
Bash
Raw Permalink Normal View History

2023-03-17 23:24:31 -04:00
#!/bin/sh -e
2023-11-19 14:38:43 -05:00
ASM="uxnasm"
2023-03-17 23:24:31 -04:00
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
SRC="opctest.tal"
DST="opctest.rom"
CPY="$HOME/roms"
ARG=""
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
$EMU $DST $ARG