Skip to content

Commit

Permalink
TOOLS-352: add mongooplog to build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
deafgoat committed Nov 10, 2014
1 parent 1752ee8 commit 7beb1f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7beb1f8

Please sign in to comment.