#!/usr/bin/env bash # SPDX-License-Identifier: MIT # Clone the reference at the pin into external/arm7tdmi-python (its source only; the data # its scripts fetch stay in the working checkout, scripts/env.sh). The clone comes from the # working checkout beside this repository, or from ARM7TDMI_PYTHON_URL. set -euo pipefail source "$(dirname "$0")/env.sh" if [ ! -d "$REFERENCE/.git" ]; then git clone -q "${ARM7TDMI_PYTHON_URL:-$ARM7TDMI_PYTHON}" "$REFERENCE" fi git -C "$REFERENCE" fetch -q origin 2>/dev/null || true git -C "$REFERENCE" checkout -q "$ARM7TDMI_PYTHON_PIN" git -C "$REFERENCE" log --oneline -1