From 5ec37f1f49acf8fbfcb7667be43b139a68d3aa96 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 24 Nov 2017 13:56:02 +0800 Subject: [PATCH] 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) --- make-dist | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/make-dist b/make-dist index 80a9109228a9..dfc00726ce95 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 -- 2.47.3