author | nipkow |
Wed, 11 Dec 2024 13:44:16 +0100 | |
changeset 81676 | 1c2a68bb0ff1 |
parent 80013 | f1686f71dffc |
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 |