mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
strip our binaries
on linux, building the packages did this but we're not doing this any more. i got the linux line from 'dh_strip' and the mac line from 'man strip'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user