X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=3rdparty%2Fboost%2Fextract.sh;h=2d65a7cba44b0670e9bd1e6ecfe278bc1d63e1c7;hb=640918d0b1a9a0411fd3898fc7cd07e8c080c4f0;hp=bdc0a69d671a4c5701530bd8d442b8d889675834;hpb=7dad35b0f8515532ff540a7a8895e278016e3d4c;p=features.git diff --git a/3rdparty/boost/extract.sh b/3rdparty/boost/extract.sh index bdc0a69d67..2d65a7cba4 100755 --- a/3rdparty/boost/extract.sh +++ b/3rdparty/boost/extract.sh @@ -10,40 +10,40 @@ # 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/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