build 533 B

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