parade/build.sh

23 lines
384 B
Bash
Executable File

#!/bin/sh -e
echo "Cleaning.."
rm -rf bin
mkdir bin
echo "Compiling.."
cat src/main.tal src/font.tal > src/parade.tal
echo "Assembling.."
uxnasm src/parade.tal bin/parade.rom
rm src/parade.tal
echo "Installing.."
if [ -d "$HOME/roms" ] && [ -e ./bin/parade.rom ]
then
cp ./bin/parade.rom $HOME/roms
echo "Installed in $HOME/roms"
fi
echo "Running.."
uxnemu bin/parade.rom