Uses the current working directory to name the built binary
This patch allows `build.sh` to be used with terraform plugins to easily create cross-platform packages, using the same method as the terraform Makefile: ``` mkdir scripts curl https://raw.githubusercontent.com/hashicorp/terraform/master/scripts/build.sh -o scripts/build.sh TF_RELEASE=1 sh -c "scripts/build.sh" # make bin ```
This commit is contained in:
parent
288f7c00e4
commit
55d4e460de
|
@ -54,7 +54,7 @@ gox \
|
|||
-arch="${XC_ARCH}" \
|
||||
-osarch="${XC_EXCLUDE_OSARCH}" \
|
||||
-ldflags "${LD_FLAGS}" \
|
||||
-output "pkg/{{.OS}}_{{.Arch}}/terraform" \
|
||||
-output "pkg/{{.OS}}_{{.Arch}}/${PWD##*/}" \
|
||||
.
|
||||
|
||||
# Move all the compiled things to the $GOPATH/bin
|
||||
|
|
Loading…
Reference in New Issue