From: Kefu Chai Date: Fri, 24 Nov 2017 05:56:02 +0000 (+0800) Subject: make-dist: exclude unused bits in boost X-Git-Tag: v12.2.3~236^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ec37f1f49acf8fbfcb7667be43b139a68d3aa96;p=ceph.git make-dist: exclude unused bits in boost the docs, examples and tests are not used. so drop them. we could go further by removing unused components in boost. but that'd be an issue if somebody added a component in CMakeLists but forgets to update this script. also, we need to remove boost/$component and lib/$component to achieve this goal. this also introduces extra complicity. so leave it for another change. Signed-off-by: Kefu Chai (cherry picked from commit 65f91227a6b052ad60b01276d7d72dea07cbb1a4) --- diff --git a/make-dist b/make-dist index 80a9109228a99..dfc00726ce95f 100755 --- a/make-dist +++ b/make-dist @@ -46,7 +46,16 @@ download_boost() { fi done set -e - tar xjf $boost_fname -C src + tar xjf $boost_fname -C src \ + --exclude="$boost_version_underscore/libs/*/doc" \ + --exclude="$boost_version_underscore/libs/*/example" \ + --exclude="$boost_version_underscore/libs/*/examples" \ + --exclude="$boost_version_underscore/libs/*/meta" \ + --exclude="$boost_version_underscore/libs/*/test" \ + --exclude="$boost_version_underscore/tools/boostbook" \ + --exclude="$boost_version_underscore/tools/quickbook" \ + --exclude="$boost_version_underscore/tools/auto_index" \ + --exclude='doc' --exclude='more' --exclude='status' mv src/boost_${boost_version_underscore} src/boost tar cf ${outfile}.boost.tar ${outfile}/src/boost rm -rf src/boost