Build script now installs binaries to $GOPATH/bin

This commit is contained in:
Mitchell Hashimoto 2013-10-20 16:16:05 -07:00
parent 65169b4576
commit e7886ff807
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,8 @@ go build \
-ldflags "-X github.com/mitchellh/packer/packer.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -ldflags "-X github.com/mitchellh/packer/packer.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \
-v \ -v \
-o bin/packer${EXTENSION} . -o bin/packer${EXTENSION} .
cp bin/packer${EXTENSION} ${GOPATH}/bin
) & ) &
waitSingle 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}" \ -ldflags "-X github.com/mitchellh/packer/packer.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \
-v \ -v \
-o bin/packer-${PLUGIN_NAME}${EXTENSION} ${PLUGIN} -o bin/packer-${PLUGIN_NAME}${EXTENSION} ${PLUGIN}
cp bin/packer-${PLUGIN_NAME}${EXTENSION} ${GOPATH}/bin
) & ) &
waitSingle waitSingle