binary to be written directly to bindir

This commit is contained in:
Shlomi Noach 2016-10-27 11:58:56 +02:00
parent 02c9b97388
commit b76b1c6f97

View File

@ -17,5 +17,5 @@ describe=$(git describe --tags --always --dirty)
export GOPATH="$PWD/.gopath"
cd .gopath/src/github.com/github/gh-ost
# We put the binaries into libexec/ and then put the shim with the appropriate name into bin/
go build -o "$libexecdir/gh-ost" -ldflags "-X main.AppVersion=${version} -X main.BuildDescribe=${describe}" ./go/cmd/gh-ost/main.go
# We put the binaries directly into the bindir, because we have no need for shim wrappers
go build -o "$bindir/gh-ost" -ldflags "-X main.AppVersion=${version} -X main.BuildDescribe=${describe}" ./go/cmd/gh-ost/main.go