From e7886ff8074fe5a41aca6e2afd2c3139eaa7fb91 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 20 Oct 2013 16:16:05 -0700 Subject: [PATCH] Build script now installs binaries to $GOPATH/bin --- scripts/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index d8243eac7..113cb45a1 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -72,6 +72,8 @@ go build \ -ldflags "-X github.com/mitchellh/packer/packer.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -v \ -o bin/packer${EXTENSION} . + + cp bin/packer${EXTENSION} ${GOPATH}/bin ) & waitSingle @@ -86,6 +88,8 @@ for PLUGIN in $(find ./plugin -mindepth 1 -maxdepth 1 -type d); do -ldflags "-X github.com/mitchellh/packer/packer.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -v \ -o bin/packer-${PLUGIN_NAME}${EXTENSION} ${PLUGIN} + + cp bin/packer-${PLUGIN_NAME}${EXTENSION} ${GOPATH}/bin ) & waitSingle