]> git.lyx.org Git - lyx.git/blob - boost/extract.sh
Cmake monolithic build: Some corrections.
[lyx.git] / boost / extract.sh
1 #!/bin/bash
2
3 #
4 # Script to extract only needed boost files using the bcp tool:
5 #
6 # http://www.boost.org/doc/libs/1_47_0/tools/bcp/doc/html/index.html
7 #
8 # Does also work with an outdated bcp version 
9 #
10 # Usage: extract.sh <path to new boost version>
11 #
12
13 if [ -z $1 ]
14 then
15     echo "Usage: extract.sh <path to new boost version>"
16     exit 1
17 fi
18
19 rm -rf needed
20 mkdir needed
21
22 bcp --boost=$1 \
23         boost/any.hpp \
24         boost/assert.hpp \
25         boost/bind.hpp \
26         boost/crc.hpp \
27         boost/cstdint.hpp \
28         boost/format.hpp \
29         boost/function.hpp \
30         boost/functional.hpp \
31         boost/lexical_cast.hpp \
32         boost/noncopyable.hpp \
33         boost/regex.hpp \
34         boost/scoped_array.hpp \
35         boost/scoped_ptr.hpp \
36         boost/shared_ptr.hpp \
37         boost/signal.hpp \
38         boost/signals/connection.hpp \
39         boost/signals/trackable.hpp \
40         boost/tokenizer.hpp \
41         boost/tuple/tuple.hpp \
42     boost/mpl/string.hpp \
43     boost/mpl/fold.hpp \
44     boost/mpl/size_t.hpp \
45     boost/functional/hash.hpp \
46         \
47         needed
48
49
50 find boost -name \*.hpp | xargs rm
51 find libs  -name \*.cpp | xargs rm
52
53 cp -vR needed/boost .
54 cp -vR needed/libs .
55
56 rm -rf needed
57
58 # found by bcp but not needed by us
59 rm -rf libs/config
60 rm -rf libs/smart_ptr
61 rm -rf libs/signals/build
62 rm -rf libs/regex/build
63 rm -rf libs/regex/test
64
65
66