-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_headers.sh
82 lines (74 loc) · 1.5 KB
/
generate_headers.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/bash
boost_archive="boost_1_77_0.tar.gz"
boost_url="https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source"
if [ ! -f $boost_archive ]; then
echo "Downloading boost archive from $boost_url/$boost_archive"
wget "$boost_url/$boost_archive"
fi
if [ ! -d "boost_1_77_0/boost" ]; then
echo "Extracting files from boost archive $boost_archive"
tar zxf $boost_archive
fi
mv boost_1_77_0/LICENSE_1_0.txt .
declare -a modules=("accumulators"
"align"
"any"
"asio"
"assign"
"atomic"
"beast"
"bimap"
"bind"
"callable_traits"
"chrono"
"circular_buffer"
"context"
"contract"
"convert"
"coroutine"
"date_time"
"describe"
"dll"
"dynamic_bitset"
"endian"
"fiber"
"flyweight"
"fusion"
"geometry"
"gil"
"histogram"
"hof"
"metaparse"
"multiprecision"
"nowide"
"outcome"
"pfr"
"phoenix"
"poly_collection"
"polygon"
"python"
"qvm"
"signals2"
"test"
"timer"
"vmd"
"wave"
"xpressive"
"yap"
)
echo "Removing unused boost modules"
for module in "${modules[@]}"
do
if [ -d "boost_1_77_0/boost/$module" ]; then
echo "Removing $module"
rm -r "boost_1_77_0/boost/$module"
fi
if [ -f "boost_1_77_0/boost/$module*.hpp" ]; then
echo "Removing $module*.hpp"
rm "boost_1_77_0/boost/$module*.hpp"
fi
done
mv boost_1_77_0/boost .
rm -r boost_1_77_0
echo "Removing boost archive"
rm boost_1_77_0.tar.gz