diff options
author | Wisdom Omuya <deafgoat@gmail.com> | 2014-11-10 11:39:14 -0500 |
---|---|---|
committer | Wisdom Omuya <deafgoat@gmail.com> | 2014-11-10 11:39:14 -0500 |
commit | 2a412ff2c805e34b3376525d75d315c7889759af (patch) | |
tree | cda1948d772b0472f10368bce01a9557a979cdb6 | |
parent | 758f9de3e203ca038b7a228a48b3476414ace174 (diff) | |
download | mongo-2a412ff2c805e34b3376525d75d315c7889759af.tar.gz |
TOOLS-352: add mongooplog to build.sh
Former-commit-id: 7beb1f8f6b6ba823f84b54f678a94a10452f324c
-rw-r--r-- | README.md | 9 | ||||
-rwxr-xr-x | build.sh | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/README.md b/README.md index 4124befdf1d..fdbfeb759ec 100644 --- a/README.md +++ b/README.md @@ -26,14 +26,7 @@ cd mongo-tools #### Building Tools -Use `go build` to build the tool binaries. Requires Go version 1.3 and up. - -``` -mkdir bin/ -for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do - go build -o "bin/$i" $i/main/$i.go -done -``` +To build the tools, you need to have Go version 1.3 and up. Run the `build.sh` script to install all the tools to `./bin`. Alternatively, you can set GOBIN and use `go install`: @@ -5,7 +5,7 @@ set -o errexit mkdir bin || true export GOBIN=bin -for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop ; do +for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do echo "Building ${i}..." go install "$i/main/$i.go" done |