uxn-utils/cli/base64/build.sh

30 lines
439 B
Bash
Raw Normal View History

#!/bin/sh
2023-05-24 12:46:15 -04:00
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="Many hands make light work."
2023-05-24 12:46:15 -04:00
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
echo "source: ${ARG}"
2023-09-05 18:44:49 -04:00
echo "target: TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu"
echo -n "result: "
echo -n "${ARG}" | $EMU $DST
echo ""
2023-05-24 12:46:15 -04:00