You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch

10 lines
626 B

--- a/build.sh 2016-04-29 20:14:54.000000000 +0200
+++ b/build.sh 2016-05-17 17:22:50.830113156 +0200
@@ -19,5 +19,5 @@
for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
echo "Building ${i}..."
# Build the tool, using -ldflags to link in the current gitspec
- go build -o "bin/$i" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec=`git rev-parse HEAD` -X github.com/mongodb/mongo-tools/common/options.VersionStr=$(git describe)" -tags "$tags" "$i/main/$i.go"
+ go build -o "bin/$i" -tags "$tags" "$i/main/$i.go" || exit 1
done