You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213
  1. #!/usr/bin/env bash
  2. set -e
  3. BASEDIR=$(cd "$(dirname "$0")" && pwd)
  4. make --quiet -C "$BASEDIR" go >&2
  5. GOENV="$(go env GOOS)_$(go env GOARCH)"
  6. unset GOROOT
  7. make --quiet -C "$BASEDIR" GOROOT GO="$BASEDIR/go/$GOENV/bin/go" >&2
  8. export GOROOT="$BASEDIR/GOROOT/$GOENV"
  9. exec $BASEDIR/go/$GOENV/bin/go "$@"