Added GOPATH/bin to the path in build script

Also fixed hardcoded tool name for MongoDB tools
This commit is contained in:
Carlos Salguero
2017-02-01 15:12:04 -03:00
parent 794229673a
commit 96acdf2961
3 changed files with 4 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ func main() {
log.SetLevel(logLevel) log.SetLevel(logLevel)
if opts.Version { if opts.Version {
fmt.Println("pt-mongodb-summary") fmt.Println(TOOLNAME)
fmt.Printf("Version %s\n", Version) fmt.Printf("Version %s\n", Version)
fmt.Printf("Build: %s using %s\n", Build, GoVersion) fmt.Printf("Build: %s using %s\n", Build, GoVersion)
return return

View File

@@ -172,7 +172,7 @@ func main() {
} }
if opts.Version { if opts.Version {
fmt.Println("pt-mongodb-summary") fmt.Println(TOOLNAME)
fmt.Printf("Version %s\n", Version) fmt.Printf("Version %s\n", Version)
fmt.Printf("Build: %s using %s\n", Build, GoVersion) fmt.Printf("Build: %s using %s\n", Build, GoVersion)
return return

View File

@@ -426,7 +426,8 @@ build_go_binaries() {
TOOLKIT_DIR="${PERCONA_DIR}/percona-toolkit" TOOLKIT_DIR="${PERCONA_DIR}/percona-toolkit"
GO_TOOLS_DIR="${TOOLKIT_DIR}/src/go" GO_TOOLS_DIR="${TOOLKIT_DIR}/src/go"
CUR_DIR=$(pwd) CUR_DIR=$(pwd)
UNLINK=0 UNLINK=0
export PATH=${GOPATH}/bin:${PATH}
echo "GOPATH: ${GOPATH}" echo "GOPATH: ${GOPATH}"
echo "Github directory: ${GITHUB_DIR}" echo "Github directory: ${GITHUB_DIR}"