Updated build.sh so it doesn't build all the plugins separately anymore

This commit is contained in:
Chris Bednarski 2015-10-21 16:41:58 -07:00
parent eb8a0bf731
commit a143f1e085
1 changed files with 2 additions and 10 deletions

View File

@ -42,18 +42,10 @@ gox \
-os="${XC_OS}" \ -os="${XC_OS}" \
-arch="${XC_ARCH}" \ -arch="${XC_ARCH}" \
-ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \
-output "pkg/{{.OS}}_{{.Arch}}/packer-{{.Dir}}" \ -output "pkg/{{.OS}}_{{.Arch}}/packer" \
./... .
set -e 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 # Move all the compiled things to the $GOPATH/bin
GOPATH=${GOPATH:-$(go env GOPATH)} GOPATH=${GOPATH:-$(go env GOPATH)}
case $(uname) in case $(uname) in