d2/make.sh
Yehuda Katz de52064d9f
Update make.sh
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2023-03-03 08:04:47 -08:00

17 lines
344 B
Bash
Executable file

#!/bin/sh
set -eu
if [ ! -e "$(dirname "$0")/ci/sub/.git" ]; then
set -x
git submodule update --init
set +x
fi
. "$(dirname "$0")/ci/sub/lib.sh"
PATH="$(cd -- "$(dirname "$0")" && pwd)/ci/sub/bin:$PATH"
cd -- "$(dirname "$0")"
if ! go version | grep -qF '1.18'; then
printferr "You need go 1.18 to build d2.\n"
exit 1
fi
_make "$@"