github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/devenv/golang_buildpkg.sh (about)

     1  #!/bin/sh
     2  if [ -z "$1" ]; then
     3          echo 'GOOS is not specified' 1>&2
     4          exit 2
     5  else
     6          export GOOS=$1
     7          if [ "$GOOS" = "windows" ]; then
     8                  export CGO_ENABLED=0
     9          fi
    10  fi
    11  shift
    12  if [ -n "$1" ]; then
    13          export GOARCH=$1
    14  fi
    15  cd $GOROOT/src
    16  go tool dist install -v pkg/runtime
    17  go install -v -a std