mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
19 lines
514 B
Bash
Executable File
19 lines
514 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
if [ ! -h src/github.com/coreos/etcd ]; then
|
|
mkdir -p src/github.com/coreos/
|
|
ln -s ../../.. src/github.com/coreos/etcd
|
|
fi
|
|
|
|
export GOBIN=${PWD}/bin
|
|
export GOPATH=${PWD}
|
|
export GOFMTPATH="./bench ./config ./discovery ./etcd ./error ./http ./log ./machines main.go ./metrics ./mod ./server ./store ./tests"
|
|
|
|
# Don't surprise user by formatting their codes by stealth
|
|
if [ "$1" == "--fmt" ]; then
|
|
gofmt -s -w -l $GOFMTPATH
|
|
fi
|
|
|
|
go install github.com/coreos/etcd
|
|
go install github.com/coreos/etcd/bench
|