Revision cfb6eb6e50bcb1d5a43c3b698ce55e68c59e0fd6 authored by Xiang Li on 02 December 2013, 18:27:02 UTC, committed by Xiang Li on 02 December 2013, 18:27:02 UTC
WIP fix root should be rdonly
build
#!/bin/sh
set -e
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 > server/release_version.go
go build "${ETCD_PACKAGE}"
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...