diff --git a/tools/generate-dev-bundle.sh b/tools/generate-dev-bundle.sh index 8f449fa8a9..560af56b99 100755 --- a/tools/generate-dev-bundle.sh +++ b/tools/generate-dev-bundle.sh @@ -15,6 +15,9 @@ if [ "$UNAME" == "Linux" ] ; then fi MONGO_OS="linux" + stripBinary() { + strip --remove-section=.comment --remove-section=.note $1 + } elif [ "$UNAME" == "Darwin" ] ; then SYSCTL_64BIT=$(sysctl -n hw.cpu64bit_capable 2>/dev/null || echo 0) if [ "$ARCH" == "i386" -a "1" != "$SYSCTL_64BIT" ] ; then @@ -31,6 +34,10 @@ elif [ "$UNAME" == "Darwin" ] ; then fi MONGO_OS="osx" + + stripBinary() { + strip -u -r $1 + } else echo "This OS not yet supported" exit 1 @@ -141,6 +148,9 @@ cd mongodb/bin rm bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongos mongosniff mongostat mongotop mongooplog mongoperf cd ../.. +stripBinary bin/node +stripBinary mongodb/bin/mongo +stripBinary mongodb/bin/mongod echo BUNDLING