]> git.lyx.org Git - features.git/blob - 3rdparty/boost/extract.sh
879a92634a7a2f185364095094f18ed2908ed850
[features.git] / 3rdparty / 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/function.hpp \
29         boost/functional.hpp \
30         boost/lexical_cast.hpp \
31         boost/noncopyable.hpp \
32         boost/regex.hpp \
33         boost/scoped_array.hpp \
34         boost/scoped_ptr.hpp \
35         boost/shared_ptr.hpp \
36         boost/signal.hpp \
37         boost/signals/connection.hpp \
38         boost/signals/trackable.hpp \
39         boost/tuple/tuple.hpp \
40     boost/mpl/string.hpp \
41     boost/mpl/fold.hpp \
42     boost/mpl/size_t.hpp \
43     boost/functional/hash.hpp \
44         \
45         needed
46
47
48 find boost -name \*.hpp | xargs rm
49 find libs  -name \*.cpp | xargs rm
50
51 cp -vR needed/boost .
52 cp -vR needed/libs .
53
54 rm -rf needed
55
56 # found by bcp but not needed by us
57 rm -rf libs/config
58 rm -rf libs/smart_ptr
59 rm -rf libs/signals/build
60 rm -rf libs/regex/build
61 rm -rf libs/regex/test
62
63
64