18 lines
814 B
Bash
Executable file
18 lines
814 B
Bash
Executable file
#!/bin/sh
|
|
# joltc — the pure-Chez jolt runtime. NO Janet.
|
|
#
|
|
# Compiles and evaluates jolt (Clojure) on Chez using the checked-in bootstrap
|
|
# seed (host/chez/seed/). With only Chez installed it runs jolt end to end:
|
|
#
|
|
# joltc -e "(+ 1 2)" evaluate an expression
|
|
# joltc run -m app.core [args] resolve deps.edn, run a namespace's -main
|
|
# joltc -M:alias [args] run an alias's :main-opts
|
|
# joltc repl | path | <task> REPL, print roots, or a deps.edn task
|
|
#
|
|
# The launcher cd's to the jolt repo root so the runtime's relative loads work;
|
|
# the user's original cwd (the project dir, where deps.edn lives) is passed in
|
|
# JOLT_PWD.
|
|
root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
|
export JOLT_PWD="${JOLT_PWD:-$PWD}"
|
|
cd "$root" || exit 1
|
|
exec chez --script host/chez/cli.ss "$@"
|