Commit 5d3b40dc authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Build script now installs binaries to $GOPATH/bin

parent 5e3c8c4f
...@@ -72,6 +72,8 @@ go build \ ...@@ -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 ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment