56a80d84cf
Update the tests as well.
18 lines
435 B
Bash
Executable File
18 lines
435 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
NAME="coreos-cloudinit"
|
|
ORG_PATH="github.com/coreos"
|
|
REPO_PATH="${ORG_PATH}/${NAME}"
|
|
VERSION=$(git describe --dirty --tags)
|
|
GLDFLAGS="-X main.version \"${VERSION}\""
|
|
|
|
if [ ! -h gopath/src/${REPO_PATH} ]; then
|
|
mkdir -p gopath/src/${ORG_PATH}
|
|
ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255
|
|
fi
|
|
|
|
export GOBIN=${PWD}/bin
|
|
export GOPATH=${PWD}/gopath
|
|
|
|
go build -ldflags "${GLDFLAGS}" -o ${GOBIN}/${NAME} ${REPO_PATH}
|