blob: 6a175d0d042f89049295871dd2c9dd4287267720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
set -o errexit
tags=""
if [ ! -z "$1" ]
then
tags="$@"
fi
. ./set_gopath.sh
mkdir bin || true
export GOBIN=bin
for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
echo "Building ${i}..."
go install -tags "$tags" "$i/main/$i.go"
done
|