Minor: allow hack/build-go.sh to take args for faster iteration.

e.g.
    $ ./hack/build-go.sh kubelet
    +++ Building kubelet
    $
This commit is contained in:
Tim Hockin 2014-06-23 11:38:04 -07:00
parent 86f837d47e
commit 035bc3ba3c

View File

@ -24,6 +24,10 @@ cd "${KUBE_TARGET}"
BINARIES="proxy integration apiserver controller-manager kubelet cloudcfg localkube"
if [ $# -gt 0 ]; then
BINARIES="$@"
fi
for b in $BINARIES; do
echo "+++ Building ${b}"
go build "${KUBE_GO_PACKAGE}"/cmd/${b}