Revision 0facc24016fbfd980eda11d36cac1a2fb5c25d99 authored by Brandon Philips on 06 October 2013, 18:39:49 UTC, committed by Brandon Philips on 06 October 2013, 18:39:49 UTC
2 parent s 5cc585a + baaaf24
Raw File
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