代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
# Makes a release tarball. We include our dependencies/submodules,
# but we heavily prune their file lists to avoid including lots of
# extraneous baggage. We also leave out Bloaty's tests, especially
# because some of the test data is large.
set -e
if [ "$#" -ne 1 ]; then
echo "Usage: make-release.tarball.sh VERSION"
exit 1
fi
VERSION=$1
FILES=$(git ls-files --exclude-standard --recurse-submodules |
grep -v googletest |
grep -v ^tests |
grep -v third_party/protobuf |
grep -v 'third_party/capstone/\(suite\|bindings\|xcode\|msvc\|contrib\)' |
grep -v third_party/abseil-cpp/absl/time/internal/cctz/testdata |
grep -v ^.git)
FILES="$FILES $(git ls-files --exclude-standard --recurse-submodules |
grep 'third_party/protobuf/\(src\|cmake\|configure.ac\)')"
# Unfortunately tar on Mac doesn't support --transform, so we have to
# actually move our files to a different directory to get the prefix.
DIR=/tmp/bloaty-$VERSION
rm -rf $DIR
mkdir $DIR
rsync -R $FILES $DIR
BASE=$PWD
cd /tmp
OUT=bloaty-$VERSION.tar.bz2
tar cjf $BASE/$OUT bloaty-$VERSION
echo "Created $OUT"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。