lyx_mirror/3rdparty/boost/extract.sh
Georg Baum 7d558d3e2a Remove boost::typeof
Jean-Marc found out that we do not need it.
2016-06-07 22:10:49 +02:00

58 lines
1002 B
Bash
Executable File

#!/bin/bash
#
# 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
#
# Does also work with an outdated bcp version
#
# Usage: extract.sh <path to new boost version>
#
if [ -z $1 ]
then
echo "Usage: extract.sh <path to new boost version>"
exit 1
fi
rm -rf needed
mkdir needed
bcp --boost=$1 \
boost/any.hpp \
boost/assert.hpp \
boost/crc.hpp \
boost/cstdint.hpp \
boost/lexical_cast.hpp \
boost/regex.hpp \
boost/scoped_ptr.hpp \
boost/signal.hpp \
boost/signals/connection.hpp \
boost/signals/trackable.hpp \
boost/tuple/tuple.hpp \
\
needed
# work around bcp pulling in too much:
rm -rf needed/boost/typeof
find boost -name \*.hpp | xargs rm
find libs -name \*.cpp | xargs rm
cp -vR needed/boost .
cp -vR needed/libs .
rm -rf needed
# found by bcp but not needed by us
rm -rf libs/config
rm -rf libs/smart_ptr
rm -rf libs/signals/build
rm -rf libs/regex/build
rm -rf libs/regex/test