mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
15 lines
257 B
Bash
Executable File
15 lines
257 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
ORG_PATH="github.com/coreos"
|
|
REPO_PATH="${ORG_PATH}/etcd"
|
|
|
|
export GOPATH=${PWD}/gopath
|
|
|
|
rm -f $GOPATH/src/${REPO_PATH}
|
|
mkdir -p $GOPATH/src/${ORG_PATH}
|
|
ln -s ${PWD} $GOPATH/src/${REPO_PATH}
|
|
|
|
eval $(go env)
|
|
|
|
go build -o bin/etcd ${REPO_PATH}
|