4 # Script to extract only needed boost files using the bcp tool:
6 # http://www.boost.org/doc/libs/1_47_0/tools/bcp/doc/html/index.html
8 # Does also work with an outdated bcp version
10 # Usage: extract.sh <path to new boost version>
21 echo "Usage: extract.sh [--report] <path to new boost version>"
22 echo "Update our local boost copy"
23 echo "With --report, create a HTML report that contains in particular the dependencies"
27 if [ x$1 = x--report ]; then
28 bcp --boost=$2 --report $HEADERS report.html
36 bcp --boost=$1 $HEADERS needed/
38 # we do not use the provided MSVC project files
39 find needed -name '*.vcpro*' | xargs rm
41 # remove old boost headers
42 find boost -name \*.hpp | xargs rm