From: Peter Kümmel Date: Sun, 23 Oct 2011 11:08:16 +0000 (+0000) Subject: Script to extract only needed boost files using the bcp tool X-Git-Tag: 2.1.0beta1~2525 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=758b7548b6486183e10f01cd3ff3434ca9f073c6;p=features.git Script to extract only needed boost files using the bcp tool git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39939 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/boost/extract.sh b/boost/extract.sh new file mode 100755 index 0000000000..813c2877fb --- /dev/null +++ b/boost/extract.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +# +# 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 +# + +rm -rf needed +mkdir needed + +bcp --boost=$PWD \ + boost/any.hpp \ + boost/assert.hpp \ + boost/bind.hpp \ + boost/crc.hpp \ + boost/cstdint.hpp \ + boost/format.hpp \ + boost/function.hpp \ + boost/functional.hpp \ + boost/lexical_cast.hpp \ + boost/next_prior.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/tokenizer.hpp \ + boost/tuple/tuple.hpp \ + \ + needed + + +find boost -name \*.hpp | xargs rm +find libs -name \*.cpp | xargs rm + +cp -vR needed/boost . +cp -vR needed/libs . + +rm -rf needed + +