summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWisdom Omuya <deafgoat@gmail.com>2014-11-10 11:39:14 -0500
committerWisdom Omuya <deafgoat@gmail.com>2014-11-10 11:39:14 -0500
commit2a412ff2c805e34b3376525d75d315c7889759af (patch)
treecda1948d772b0472f10368bce01a9557a979cdb6
parent758f9de3e203ca038b7a228a48b3476414ace174 (diff)
downloadmongo-2a412ff2c805e34b3376525d75d315c7889759af.tar.gz
TOOLS-352: add mongooplog to build.sh
Former-commit-id: 7beb1f8f6b6ba823f84b54f678a94a10452f324c
-rw-r--r--README.md9
-rwxr-xr-xbuild.sh2
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`:
diff --git a/build.sh b/build.sh
index 4d475676cce..aecc64d304c 100755
--- a/build.sh
+++ b/build.sh
@@ -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