-
Notifications
You must be signed in to change notification settings - Fork 8
/
prepare.sh
executable file
·32 lines (24 loc) · 891 Bytes
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
rm -rf boost_1_70_0
# Get Boost sources first
wget -qO- https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz | tar xvz
# To get the list of binary libraries do:
cd boost_1_70_0/
./bootstrap.sh --show-libraries | grep " - " | awk '{print $2}' | sort > binary_libraries
# To get the list of libraries do:
cd libs
ls -d */ -1 | tr -d '/' > ../all_libraries
cd -
# Subtract binary libraries from all the libraries and edit result to get what you need
grep -vxFf binary_libraries all_libraries > result
# Get Boost binary package for bcp tool, valid for Ubuntu 16.04
#sudo apt install libboost1.58-tools-dev
# or, a slower alternative:
# Build Boost BCP from binaries
./bootstrap.sh
./b2 tools/bcp
# Strip everything on the second level except the sources itself
cd libs
find . ! -path '*/src*' -type d | grep "/.*/" | xargs rm -rf
cd -
cd ..