1#!/usr/bin/env bash 2set -e 3set -x 4 5repoPath=$(cd $(dirname $BASH_SOURCE)/.. && pwd) 6 7if [ -z $GOROOT ]; then 8 export GOROOT=/usr/local/go 9 export PATH=$GOROOT/bin:$PATH 10fi 11 12if [ -z $GOPATH ]; then 13 export GOPATH=$HOME/go 14 export PATH=$GOPATH/bin:$PATH 15fi 16 17cd $(dirname $0)/.. 18mkdir -p $GOPATH/src/code.cloudfoundry.org 19ln -s $PWD $GOPATH/src/code.cloudfoundry.org/garden 20 21cd $GOPATH/src/code.cloudfoundry.org/garden 22go run scripts/update-godoc/main.go 23