]> git.lyx.org Git - lyx.git/blob - 3rdparty/boost/extract.sh
We do not use the provided MSVC proj files
[lyx.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/crc.hpp \
26         boost/cstdint.hpp \
27         boost/lexical_cast.hpp \
28         boost/regex.hpp \
29         boost/scoped_ptr.hpp \
30         boost/signal.hpp \
31         boost/signals/connection.hpp \
32         boost/signals/trackable.hpp \
33         boost/tuple/tuple.hpp \
34         \
35         needed
36
37
38 # work around bcp pulling in too much:
39 rm -rf needed/boost/typeof
40
41 # we do not use the provided MSVC project files
42 find needed -name '*.vcpro*' | xargs rm
43
44 find boost -name \*.hpp | xargs rm
45 find libs  -name \*.cpp | xargs rm
46
47 cp -vR needed/boost .
48 cp -vR needed/libs .
49
50 rm -rf needed
51
52 # found by bcp but not needed by us
53 rm -rf libs/config
54 rm -rf libs/smart_ptr
55 rm -rf libs/signals/build
56 rm -rf libs/regex/build
57 rm -rf libs/regex/test
58
59
60