swh:1:snp:d2871480d5f4e06baf16689eecc7e047c1f18981
Raw File
Tip revision: 13b0e7230445dcb432f6652b6fd7449c86e468d8 authored by Brandon Philips on 08 July 2014, 01:10:41 UTC
CHANGELOG: v0.4.5
Tip revision: 13b0e72
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