uxn-utils/cli/base64/build.sh

32 lines
420 B
Bash
Raw Normal View History

2023-05-24 12:46:15 -04:00
#!/bin/sh -e
ID="b64enc"
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxncli"
LIN="uxncli $HOME/roms/uxnlin.rom"
SRC="${ID}.tal"
DST="${ID}.rom"
CPY="$HOME/roms"
ARG="test.txt"
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
2023-09-05 18:44:49 -04:00
echo -n "source: "
cat test.txt
echo ""
echo "target: TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu"
echo -n "result: "
2023-05-24 12:46:15 -04:00
$EMU $DST $ARG