uxn-utils/gui/loader/build.sh

29 lines
306 B
Bash
Raw Permalink Normal View History

2023-03-21 00:07:28 -04:00
#!/bin/sh -e
ASM="uxnasm"
EMU="uxnemu"
LIN="uxncli $HOME/roms/uxnlin.rom"
SRC="loader.tal"
DST="loader.rom"
CPY="$HOME/roms"
ARG=""
# special
$ASM polycat.tal polycat.rom
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
$EMU $DST $ARG