2015-10-24 10:39:51 +00:00
|
|
|
#!/bin/bash
|
2011-10-23 11:08:16 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Script to extract only needed boost files using the bcp tool:
|
|
|
|
#
|
|
|
|
# http://www.boost.org/doc/libs/1_47_0/tools/bcp/doc/html/index.html
|
|
|
|
#
|
2020-11-29 18:20:55 +00:00
|
|
|
# Does also work with an outdated bcp version
|
2011-10-23 11:08:16 +00:00
|
|
|
#
|
2011-11-20 18:46:12 +00:00
|
|
|
# Usage: extract.sh <path to new boost version>
|
|
|
|
#
|
|
|
|
|
|
|
|
if [ -z $1 ]
|
|
|
|
then
|
|
|
|
echo "Usage: extract.sh <path to new boost version>"
|
|
|
|
exit 1
|
|
|
|
fi
|
2011-10-23 11:08:16 +00:00
|
|
|
|
|
|
|
rm -rf needed
|
|
|
|
mkdir needed
|
|
|
|
|
2011-11-20 18:46:12 +00:00
|
|
|
bcp --boost=$1 \
|
2011-10-23 11:08:16 +00:00
|
|
|
boost/any.hpp \
|
|
|
|
boost/assert.hpp \
|
|
|
|
boost/crc.hpp \
|
|
|
|
boost/lexical_cast.hpp \
|
2016-06-09 20:25:34 +00:00
|
|
|
boost/signals2.hpp \
|
|
|
|
boost/signals2/connection.hpp \
|
|
|
|
boost/signals2/trackable.hpp \
|
2011-10-23 11:08:16 +00:00
|
|
|
\
|
|
|
|
needed
|
|
|
|
|
|
|
|
|
2016-06-07 20:19:10 +00:00
|
|
|
# we do not use the provided MSVC project files
|
|
|
|
find needed -name '*.vcpro*' | xargs rm
|
|
|
|
|
2011-10-23 11:08:16 +00:00
|
|
|
find boost -name \*.hpp | xargs rm
|
2020-11-28 17:26:56 +00:00
|
|
|
#find libs -name \*.cpp | xargs rm
|
2011-10-23 11:08:16 +00:00
|
|
|
|
|
|
|
cp -vR needed/boost .
|
2020-11-29 20:40:22 +00:00
|
|
|
#cp -vR needed/libs .
|
2011-10-23 11:08:16 +00:00
|
|
|
|
|
|
|
rm -rf needed
|
|
|
|
|
2011-11-20 19:10:54 +00:00
|
|
|
# found by bcp but not needed by us
|
2016-06-09 20:25:34 +00:00
|
|
|
rm -rf boost/typeof
|
2011-11-20 19:10:54 +00:00
|
|
|
rm -rf libs/config
|
|
|
|
rm -rf libs/smart_ptr
|
2011-10-23 11:08:16 +00:00
|
|
|
|