uxn-utils/gui/sixels/build.sh

33 lines
416 B
Bash
Raw Normal View History

2023-10-19 15:36:00 -04:00
#!/bin/sh -e
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxnemu"
LIN="uxncli $HOME/roms/uxnlin.rom"
ID="sixels"
SRC="${ID}.tal"
DST="${ID}.rom"
CPY="$HOME/roms"
2023-10-28 23:42:34 -04:00
ARG="dafu.sixels"
2023-10-19 15:36:00 -04:00
if [[ "$*" == *"--lint"* ]]
then
$LIN $SRC
fi
$ASM $SRC $DST
if [[ "$*" == *"--save"* ]]
then
cp $DST $CPY
fi
2023-10-28 23:42:34 -04:00
# convert an image to sixels
$ASM icnsix.tal icnsix.rom
uxncli icnsix.rom dafu10x10.icn > dafu.sixels
2023-10-19 15:36:00 -04:00
$EMU $DST $ARG