From 0598f8e7c5dea44311fa4f2c4683d2aac996783f Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Mon, 6 Jul 2026 17:09:51 +0100 Subject: [PATCH] Allowed the boot script to check multiple names for the chez executable. --- bin/joltc | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/bin/joltc b/bin/joltc index c1dc162..8b3bb2a 100755 --- a/bin/joltc +++ b/bin/joltc @@ -14,7 +14,28 @@ # JOLT_PWD. root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)" export JOLT_PWD="${JOLT_PWD:-$PWD}" + +# Identify the Chez Scheme executable +while read -r CHEZ +do + if [ `which ${CHEZ}` ] + then + break; + fi +done </dev/null || echo dev)}" cd "$root" || exit 1 -exec chez --script host/chez/cli.ss "$@" +exec ${CHEZ} --script host/chez/cli.ss "$@" +