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.
 
 
 
 
 
 

11 line
227 B

  1. #!/usr/bin/env bash
  2. set -e
  3. BASEDIR=$(cd "$(dirname "$0")" && pwd)
  4. GOENV="$(go env GOHOSTOS)_$(go env GOHOSTARCH)"
  5. BUILD_DIR=${BASEDIR}/GOROOT make -f $BASEDIR/Makefile >&2
  6. export GOROOT="$BASEDIR/GOROOT/$GOENV"
  7. exec go "$@"