|
|
|
|
@ -52,10 +52,22 @@ for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do
|
|
|
|
|
set -e
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Move all the compiled things to the $GOPATH/bin
|
|
|
|
|
GOPATH=${GOPATH:-$(go env GOPATH)}
|
|
|
|
|
case $(uname) in
|
|
|
|
|
CYGWIN*)
|
|
|
|
|
GOPATH="$(cygpath $GOPATH)"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
OLDIFS=$IFS
|
|
|
|
|
IFS=: MAIN_GOPATH=($GOPATH)
|
|
|
|
|
IFS=$OLDIFS
|
|
|
|
|
|
|
|
|
|
# Copy our OS/Arch to the bin/ directory
|
|
|
|
|
DEV_PLATFORM="./pkg/$(go env GOOS)_$(go env GOARCH)"
|
|
|
|
|
for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do
|
|
|
|
|
cp ${F} bin/
|
|
|
|
|
cp ${F} ${MAIN_GOPATH}/bin/
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [ "${TF_DEV}x" = "x" ]; then
|
|
|
|
|
|