kestrel/bootstrap.sh

15 lines
630 B
Bash

#!/bin/sh
set -e
echo "======> Building seed Drifloon using uxnmin"
make -sC utils clean
make -sC utils drifloon.rom
echo "======> Building Drifloon using utils/drifloon.rom (seed)"
dune exec -- ./exe/uxnemu.exe utils/drifloon.rom < utils/drifloon.tal > drifloon-ocaml.rom
echo "======> Comparing ROMs (should be identical)"
cmp drifloon-ocaml.rom utils/drifloon.rom
echo "======> Building Drifloon using drifloon-ocaml.rom"
dune exec -- ./exe/uxnemu.exe drifloon-ocaml.rom < utils/drifloon.tal > drifloon-boot.rom
echo "======> Comparing ROMs (should be identical)"
cmp drifloon-ocaml.rom drifloon-boot.rom
echo "======> Done!"