Use 'go install' to build all commands at the same time.

'go build' compiles the packages but discards the results if multiple packages specified.
This commit is contained in:
Albert Zhang
2014-07-26 22:51:59 -04:00
parent f91bfe2e00
commit 0375709fa3
6 changed files with 10 additions and 7 deletions

View File

@@ -31,7 +31,4 @@ if [ $# -gt 0 ]; then
BINARIES="$@"
fi
for b in ${BINARIES}; do
echo "+++ Building ${b}"
go build "${KUBE_GO_PACKAGE}/${b}"
done
go install $(for b in $BINARIES; do echo "${KUBE_GO_PACKAGE}"/${b}; done)