uxn-utils/gui/meta/build.sh

26 lines
292 B
Bash
Raw Permalink Normal View History

2023-04-04 18:26:25 -04:00
#!/bin/sh -e
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxnemu"
LIN="uxncli $HOME/roms/uxnlin.rom"
SRC="meta.tal"
DST="meta.rom"
CPY="$HOME/roms"
ARG="${DST}"
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
$EMU $DST $ARG