mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
3093789e8d
1/ remove boost regex code from 3rdparty/boost. Only the cmake stuff remains. 2/ remove traces of BOOST_LIB since there is no need anymore to compile boost stuff. 3/ remove traces of boost regexp in config/lyxinclude.m4 and INSTALL 4/ require gcc 4.9 as minimal version in autoconf. Unfortunately, the net gain is only 10% of included boost size (now 21M).
51 lines
906 B
Bash
Executable File
51 lines
906 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/signals2.hpp \
|
|
boost/signals2/connection.hpp \
|
|
boost/signals2/trackable.hpp \
|
|
\
|
|
needed
|
|
|
|
|
|
# we do not use the provided MSVC project files
|
|
find needed -name '*.vcpro*' | xargs rm
|
|
|
|
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 boost/typeof
|
|
rm -rf libs/config
|
|
rm -rf libs/smart_ptr
|
|
|