uxn-utils/cli/format-c/build.sh

26 lines
309 B
Bash
Raw Normal View History

2023-03-17 23:35:23 -04:00
#!/bin/sh -e
2023-08-02 11:27:55 -04:00
ID="format-c"
2023-03-17 23:35:23 -04:00
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
2023-08-02 11:27:55 -04:00
SRC="${ID}.tal"
DST="${ID}.rom"
2023-03-17 23:35:23 -04:00
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