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 "$@" +