https://github.com/etcd-io/etcd
Raw File
Tip revision: 9fa3bea5a22265151f0d5063ce38a79c5b5d0271 authored by Yicheng Qin on 31 March 2015, 20:54:58 UTC
*: bump to v0.4.9
Tip revision: 9fa3bea
build
#!/bin/sh -e

if [ ! -h gopath/src/github.com/coreos/etcd ]; then
	mkdir -p gopath/src/github.com/coreos/
	ln -s ../../../.. gopath/src/github.com/coreos/etcd
fi

export GOBIN=${PWD}/bin
export GOPATH=${PWD}/gopath
export GOFMTPATH="./bench ./config ./discovery ./etcd ./error ./http ./log main.go ./metrics ./mod ./server ./store ./tests"

# Don't surprise user by formatting their codes by stealth
if [ "--fmt" = "$1" ]; then
	gofmt -s -w -l $GOFMTPATH
fi

go install github.com/coreos/etcd
go install github.com/coreos/etcd/bench
back to top