2016-11-03 21:13:18 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-03-21 10:05:19 +00:00
|
|
|
#
|
|
|
|
# THIS FILE IS ONLY USED BY _dev/bogo. It will be removed in future
|
2016-11-03 21:13:18 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
BASEDIR=$(cd "$(dirname "$0")" && pwd)
|
2016-12-01 15:06:07 +00:00
|
|
|
GOENV="$(go env GOHOSTOS)_$(go env GOHOSTARCH)"
|
2016-11-03 21:13:18 +00:00
|
|
|
|
2018-03-01 14:51:40 +00:00
|
|
|
BUILD_DIR=${BASEDIR}/GOROOT make -f $BASEDIR/Makefile >&2
|
2016-11-03 21:13:18 +00:00
|
|
|
|
2017-12-20 11:16:34 +00:00
|
|
|
export GOROOT="$BASEDIR/GOROOT/$GOENV"
|
|
|
|
exec go "$@"
|