X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=3rdparty%2Fboost%2Fextract.sh;h=2d65a7cba44b0670e9bd1e6ecfe278bc1d63e1c7;hb=640918d0b1a9a0411fd3898fc7cd07e8c080c4f0;hp=f37448456bcd3a0662564121bbf028756825be2e;hpb=5ee778af752f9d0f97226365a5c73823ad9c2ffb;p=features.git diff --git a/3rdparty/boost/extract.sh b/3rdparty/boost/extract.sh index f37448456b..2d65a7cba4 100755 --- a/3rdparty/boost/extract.sh +++ b/3rdparty/boost/extract.sh @@ -5,56 +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/bind.hpp \ - boost/crc.hpp \ - boost/cstdint.hpp \ - boost/function.hpp \ - boost/functional.hpp \ - boost/lexical_cast.hpp \ - boost/noncopyable.hpp \ - boost/regex.hpp \ - boost/scoped_array.hpp \ - boost/scoped_ptr.hpp \ - boost/shared_ptr.hpp \ - boost/signal.hpp \ - boost/signals/connection.hpp \ - boost/signals/trackable.hpp \ - boost/tuple/tuple.hpp \ - \ - needed - - -find boost -name \*.hpp | xargs rm -find libs -name \*.cpp | xargs rm +bcp --boost=$1 $HEADERS needed/ -cp -vR needed/boost . -cp -vR needed/libs . +# we do not use the provided MSVC project files +find needed -name '*.vcpro*' | xargs rm -rm -rf needed +# remove old boost code +rm -rf boost/* -# 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 +# copy new headers +cp -vR needed/boost . +rm -rf needed