X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=3rdparty%2Fboost%2Fextract.sh;h=2d65a7cba44b0670e9bd1e6ecfe278bc1d63e1c7;hb=4e50da3e655b9f8d26f7d5e439d72b219d32279d;hp=8a1e70e25ed77556fe1372a066ec2422d5c94753;hpb=3093789e8d285db909a98d733e19a28f48caa7b8;p=lyx.git diff --git a/3rdparty/boost/extract.sh b/3rdparty/boost/extract.sh index 8a1e70e25e..2d65a7cba4 100755 --- a/3rdparty/boost/extract.sh +++ b/3rdparty/boost/extract.sh @@ -5,46 +5,45 @@ # # http://www.boost.org/doc/libs/1_47_0/tools/bcp/doc/html/index.html # -# Does also work with an outdated bcp version +# Does also work with an outdated bcp version # # Usage: extract.sh # +HEADERS="\ + boost/any.hpp \ + boost/assert.hpp \ + boost/crc.hpp \ + " + if [ -z $1 ] then - echo "Usage: extract.sh " + echo "Usage: extract.sh [--report] " + echo "Update our local boost copy" + echo "With --report, create a HTML report that contains in particular the dependencies" exit 1 fi +if [ x$1 = x--report ]; then + bcp --boost=$2 --report $HEADERS report.html + exit 0; +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 - +bcp --boost=$1 $HEADERS 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 +# remove old boost code +rm -rf boost/* +# copy new headers 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