]> git.lyx.org Git - lyx.git/blob - 3rdparty/boost/extract.sh
We do not use <boost/scoped_array.hpp> anymore
[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/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_ptr.hpp \
34         boost/shared_ptr.hpp \
35         boost/signal.hpp \
36         boost/signals/connection.hpp \
37         boost/signals/trackable.hpp \
38         boost/tuple/tuple.hpp \
39         \
40         needed
41
42
43 find boost -name \*.hpp | xargs rm
44 find libs  -name \*.cpp | xargs rm
45
46 cp -vR needed/boost .
47 cp -vR needed/libs .
48
49 rm -rf needed
50
51 # found by bcp but not needed by us
52 rm -rf libs/config
53 rm -rf libs/smart_ptr
54 rm -rf libs/signals/build
55 rm -rf libs/regex/build
56 rm -rf libs/regex/test
57
58
59