#!/bin/sh # SPDX-License-Identifier: MIT # Check that the closed-box referee is built, and say which build it is. # # sh validation/build_referee.sh # # The referee is nuked-harness's opm-events (Nuked-OPM @ f209e6e driven through its # public header opm.h only, docs/restart.md rule 5), a GPL tool kept outside this # repository since 2026-11-22 (docs/provenance.md, "History"). It is built in # emu-tools-gpl by that repository's own tools/nuked/build.sh, and found at its # documented path under EMU_TOOLS_GPL (emu-tools/docs/contract.md, section 5). This # repository no longer compiles any GPL-linked code (2026-11-24); nothing of the # referee's source is copied here or opened. # # Exit status 3 (a missing input) when EMU_TOOLS_GPL is unset or the binary is not # built. # # Licence: Nuked-OPM is LGPL-2.1-or-later. The binary is built locally and run as a # referee; it is not distributed. set -e if [ -z "$EMU_TOOLS_GPL" ]; then echo "the referee is a GPL tool outside this repository: set EMU_TOOLS_GPL" >&2 exit 3 fi referee="$EMU_TOOLS_GPL/tools/nuked/build/opm-events" if [ ! -x "$referee" ]; then echo "$referee is not built: run \"\$EMU_TOOLS_GPL/tools/nuked/build.sh\"" >&2 exit 3 fi echo "opm-events (Nuked-OPM @ f209e6e, nuked-harness)" echo "referee at \$EMU_TOOLS_GPL/tools/nuked/build/opm-events"