commit 78359835606620bad2782a20ecb646c12d654282 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Dec 10 12:13:02 2020 +0100
Cleanup extract.sh Add new option --report to create an HTML report (shows dependencies at the end). --- 3rdparty/boost/extract.sh | 36 ++++++++++++++++++++---------------- 1 files changed, 20 insertions(+), 16 deletions(-) diff --git a/3rdparty/boost/extract.sh b/3rdparty/boost/extract.sh index 769f5a7..bff2a65 100755 --- a/3rdparty/boost/extract.sh +++ b/3rdparty/boost/extract.sh @@ -10,38 +10,42 @@ # Usage: extract.sh <path to new boost version> # +HEADERS="\ + boost/any.hpp \ + boost/assert.hpp \ + boost/crc.hpp \ + boost/lexical_cast.hpp \ + boost/signals2/signal.hpp \ + " + if [ -z $1 ] then - echo "Usage: extract.sh <path to new boost version>" + echo "Usage: extract.sh [--report] <path to new boost version>" + 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/signal.hpp \ - \ - needed - +bcp --boost=$1 $HEADERS needed/ # we do not use the provided MSVC project files find needed -name '*.vcpro*' | xargs rm +# remove old boost headers find boost -name \*.hpp | xargs rm -#find libs -name \*.cpp | xargs rm +# 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 -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs