]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make-dist: exclude unused bits in boost 19721/head
authorKefu Chai <kchai@redhat.com>
Fri, 24 Nov 2017 05:56:02 +0000 (13:56 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 30 Dec 2017 03:45:36 +0000 (11:45 +0800)
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 <kchai@redhat.com>
(cherry picked from commit 65f91227a6b052ad60b01276d7d72dea07cbb1a4)

make-dist

index 80a9109228a9971b0a48aa039ed1f725782046a7..dfc00726ce95f2afb1418c80752949c00fd7a8c1 100755 (executable)
--- 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