Added uxnbal to build.sh

This commit is contained in:
Devine Lu Linvega 2023-05-13 20:24:08 -07:00
parent a3032ff959
commit d7eb7d2fc0
1 changed files with 4 additions and 3 deletions

View File

@ -3,17 +3,19 @@
set -o nounset # Fails when accessing an unset variable.
set -o errexit # Exits if a command exits with a non-zero status.
name="drifblim"
roms_dir=${UXN_ROMS_DIR-"$HOME/roms"}
asm="uxnasm"
emu="uxncli"
lin="uxncli $roms_dir/uxnlin.rom"
name="drifblim"
bal="uxncli $roms_dir/uxnbal.rom"
src="src/${name}.tal"
dst="bin/${name}.rom"
arg="${src} ${dst}"
mkdir -p bin
case "$*" in *--lint*) $lin $src ;; esac
case "$*" in *--bal*) $bal $src ;; esac
$asm $src $dst
case "$*" in *--save*) cp $dst $roms_dir ;; esac
$asm src/drifloon.tal bin/drifloon.rom
@ -24,5 +26,4 @@ $emu $dst examples/hello.tal bin/hello.rom
$emu bin/hello.rom
# Test interactive mode
uxnemu "${roms_dir}/left.rom" examples/hello.tal | $emu $dst ^bin/hello.rom
# uxnemu "${roms_dir}/left.rom" examples/hello.tal | $emu $dst ^bin/hello.rom