Files
external-dns/scripts/build
T
2015-10-29 11:52:30 -07:00

25 lines
366 B
Python
Executable File

#!/bin/bash -e
cd $(dirname $0)/..
if [ -f ./build/bootstrap.envs ];then
. ./build/bootstrap.envs
fi
. ./scripts/common_functions
set_project_vars
if [ -L ${PACKAGE} ]; then
rm ${PACKAGE}
fi
if [ ! -e ${PACKAGE} ]; then
mkdir -p $(dirname $PACKAGE)
ln -s $(pwd) $PACKAGE
fi
echo export GOPATH=$GOPATH
CGO_ENABLED=0 go build -o bin/${PROJECT}