https://github.com/etcd-io/etcd
Raw File
Tip revision: e77b9aa020a2041a0f88459a4d82f236517dff09 authored by Brandon Philips on 10 October 2013, 22:28:19 UTC
fix(mod/dashboard): bump the resources
Tip revision: e77b9aa
build
#!/bin/sh

ETCD_PACKAGE=github.com/coreos/etcd
export GOPATH="${PWD}"
SRC_DIR="$GOPATH/src"
ETCD_DIR="$SRC_DIR/$ETCD_PACKAGE"

ETCD_BASE=$(dirname "${ETCD_DIR}")
if [ ! -d "${ETCD_BASE}" ]; then
	mkdir -p "${ETCD_BASE}"
fi

if [ ! -h "${ETCD_DIR}" ]; then
	ln -s ../../../ "${ETCD_DIR}"
fi

for i in third_party/*; do
	if [ "$i" = "third_party/src" ]; then
		continue
	fi
	cp -R "$i" src/
done

./scripts/release-version > release_version.go
go build "${ETCD_PACKAGE}"
back to top