mirror of
https://github.com/vxcontrol/external-dns.git
synced 2026-07-21 14:15:24 -04:00
25 lines
366 B
Python
Executable File
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}
|