uxn-utils/cli/stdlib/build.sh

33 lines
382 B
Bash
Raw Permalink Normal View History

2023-04-10 18:02:25 -04:00
#!/bin/sh -e
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
2024-03-17 14:55:25 -04:00
BAL="uxncli $HOME/roms/uxnbal.rom"
2023-04-10 18:02:25 -04:00
ID="stdlib"
SRC="${ID}.tal"
DST="${ID}.rom"
CPY="$HOME/roms"
ARG=""
2024-03-17 14:55:25 -04:00
if [[ "$*" == *"--bal"* ]]
then
$BAL $SRC
fi
2023-04-10 18:02:25 -04:00
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
$EMU $DST $ARG