From a143f1e0856d0425d43fffa7d82b6b5e59f2c68c Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Wed, 21 Oct 2015 16:41:58 -0700 Subject: [PATCH] Updated build.sh so it doesn't build all the plugins separately anymore --- scripts/build.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index b2e3248e4..dcd9bd7c8 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -42,18 +42,10 @@ gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ -ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ - -output "pkg/{{.OS}}_{{.Arch}}/packer-{{.Dir}}" \ - ./... + -output "pkg/{{.OS}}_{{.Arch}}/packer" \ + . set -e -# Make sure "packer-packer" is renamed properly -for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do - set +e - mv ${PLATFORM}/packer-packer.exe ${PLATFORM}/packer.exe 2>/dev/null - mv ${PLATFORM}/packer-packer ${PLATFORM}/packer 2>/dev/null - set -e -done - # Move all the compiled things to the $GOPATH/bin GOPATH=${GOPATH:-$(go env GOPATH)} case $(uname) in