author | wenzelm |
Tue, 26 Mar 2024 21:04:43 +0100 | |
changeset 80013 | f1686f71dffc |
parent 80011 | b082476a8036 |
permissions | -rwxr-xr-x |
80011 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
5 |
# DESCRIPTION: invoke gofmt within the Isabelle environment |
|
6 |
||
7 |
if [ -z "$ISABELLE_GOEXE" ]; then |
|
8 |
echo "Missing Go installation: need to run \"isabelle go_setup\" first" >&2 |
|
9 |
exit 2 |
|
10 |
else |
|
80013 | 11 |
export GOROOT="$(platform_path "$ISABELLE_GOROOT")" |
80011 | 12 |
exec "$ISABELLE_GOEXE/gofmt" "$@" |
13 |
fi |