uxn-utils/cli/hx/build.sh

26 lines
290 B
Bash
Raw Normal View History

2023-03-17 13:28:04 -04:00
#!/bin/sh -e
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
SRC="hx.tal"
DST="hx.rom"
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