github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/devenv/golang_buildpkg.sh (about) 1 #!/bin/sh 2 # 3 # Copyright IBM Corp. All Rights Reserved. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 8 if [ -z "$1" ]; then 9 echo 'GOOS is not specified' 1>&2 10 exit 2 11 else 12 export GOOS=$1 13 if [ "$GOOS" = "windows" ]; then 14 export CGO_ENABLED=0 15 fi 16 fi 17 shift 18 if [ -n "$1" ]; then 19 export GOARCH=$1 20 fi 21 cd $GOROOT/src 22 go tool dist install -v pkg/runtime 23 go install -v -a std