github.com/marineam/etcd@v0.1.2-0.20130821182615-9b7109b46686/build (about) 1 #!/bin/bash 2 3 ETCD_PACKAGE=github.com/coreos/etcd 4 export GOPATH=${PWD} 5 SRC_DIR=$GOPATH/src 6 ETCD_DIR=$SRC_DIR/$ETCD_PACKAGE 7 8 ETCD_BASE=$(dirname ${ETCD_DIR}) 9 if [ ! -d ${ETCD_BASE} ]; then 10 mkdir -p ${ETCD_BASE} 11 fi 12 13 if [ ! -h ${ETCD_DIR} ]; then 14 ln -s ../../../ ${ETCD_DIR} 15 fi 16 17 for i in third_party/*; do 18 if [ $i = "third_party/src" ]; then 19 continue 20 fi 21 cp -R $i src/ 22 done 23 24 ./scripts/release-version > release_version.go 25 go build ${ETCD_PACKAGE}