#!/usr/bin/env bashset-oerrexit
set-onounset
set-opipefail
# Set GOPATHGOPATH="$(goenvGOPATH)"# Set default binary locationBINARY_PATH="$GOPATH/src/github.com/ava-labs/avalanchego/build/plugins/evm"if[[$#-eq1]];thenBINARY_PATH=$1elif[[$#-ne0]];thenecho"Invalid arguments to build coreth. Requires either no arguments (default) or one arguments to specify binary location."exit1fi# Build Coreth, which is run as a subprocessecho"Building Coreth..."
gobuild-o"$BINARY_PATH""plugin/"*.go