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