github.com/ghodss/etcd@v0.3.1-0.20140417172404-cc329bfa55cb/build (about) 1 #!/bin/sh -e 2 3 if [ ! -h gopath/src/github.com/coreos/etcd ]; then 4 mkdir -p gopath/src/github.com/coreos/ 5 ln -s ../../../.. gopath/src/github.com/coreos/etcd 6 fi 7 8 export GOBIN=${PWD}/bin 9 export GOPATH=${PWD}/gopath 10 export GOFMTPATH="./bench ./config ./discovery ./etcd ./error ./http ./log main.go ./metrics ./mod ./server ./store ./tests" 11 12 # Don't surprise user by formatting their codes by stealth 13 if [ "--fmt" = "$1" ]; then 14 gofmt -s -w -l $GOFMTPATH 15 fi 16 17 go install github.com/coreos/etcd 18 go install github.com/coreos/etcd/bench