2015-04-15 22:35:02 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
ORG_PATH="github.com/appc"
|
|
|
|
REPO_PATH="${ORG_PATH}/cni"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
echo "Building plugins"
|
|
|
|
|
2015-06-01 23:58:43 +00:00
|
|
|
PLUGINS="plugins/meta/* plugins/main/* plugins/ipam/*"
|
2015-04-15 22:35:02 +00:00
|
|
|
for d in $PLUGINS; do
|
|
|
|
if [ -d $d ]; then
|
|
|
|
plugin=$(basename $d)
|
|
|
|
echo " " $plugin
|
|
|
|
go install ${REPO_PATH}/$d
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ ! -h $GOBIN/host-local-ptp ]; then
|
|
|
|
ln -s host-local $GOBIN/host-local-ptp
|
|
|
|
fi
|