#!/bin/sh # SPDX-License-Identifier: MIT # Build the die-derived referee: since 2026-11-24 the GPL tool builds it itself. # # sh validation/build_referees.sh # # YM2608-LLE (nukeykt, GPL-2.0, 7a2aca7) is a CLOSED BOX here (docs/restart.md): # run as a referee, never opened, and since 2026-11-24 never fetched into this # repository (Aubrey's rule). The probe, lle2610_probe, lives with its build in the # GPL-2.0-only tool repository that EMU_TOOLS_GPL2 names: its build.sh fetches the # model at the pin, applies the YM2610 build fix as a patch, and writes # $EMU_TOOLS_GPL2/tools/ym2608-lle/build/lle2610_probe (ym2608-lle 0.1.0; see its # README). This script only calls it and checks the program is there. Without the # variable or the program it stops with status 3 (a missing input). set -e if [ -z "${EMU_TOOLS_GPL2:-}" ]; then echo "lle2610_probe is a GPL-2.0-only tool kept outside this repository: set EMU_TOOLS_GPL2 (expects \$EMU_TOOLS_GPL2/tools/ym2608-lle/build.sh)" >&2 exit 3 fi tool="$EMU_TOOLS_GPL2/tools/ym2608-lle" [ -f "$tool/build.sh" ] || { echo "$tool/build.sh not found (EMU_TOOLS_GPL2 names a checkout of emu-tools-gpl2)" >&2; exit 3; } sh "$tool/build.sh" [ -x "$tool/build/lle2610_probe" ] || { echo "$tool/build/lle2610_probe was not built" >&2; exit 3; } echo "probe: $tool/build/lle2610_probe"