parade/build.sh

23 lines
384 B
Bash
Raw Normal View History

2021-08-25 19:01:53 +01:00
#!/bin/sh -e
2020-09-08 19:59:13 +01:00
2021-07-10 17:22:43 +01:00
echo "Cleaning.."
rm -rf bin
mkdir bin
2020-09-08 19:59:13 +01:00
2021-08-25 19:01:53 +01:00
echo "Compiling.."
cat src/main.tal src/font.tal > src/parade.tal
2021-07-10 17:22:43 +01:00
echo "Assembling.."
2021-08-25 19:01:53 +01:00
uxnasm src/parade.tal bin/parade.rom
rm src/parade.tal
2020-10-25 03:42:16 +00:00
2021-07-10 17:22:43 +01:00
echo "Installing.."
if [ -d "$HOME/roms" ] && [ -e ./bin/parade.rom ]
then
cp ./bin/parade.rom $HOME/roms
echo "Installed in $HOME/roms"
fi
2020-09-08 19:59:13 +01:00
2021-07-10 17:22:43 +01:00
echo "Running.."
uxnemu bin/parade.rom