]> git.lyx.org Git - lyx.git/commitdiff
Script to extract only needed boost files using the bcp tool
authorPeter Kümmel <syntheticpp@gmx.net>
Sun, 23 Oct 2011 11:08:16 +0000 (11:08 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sun, 23 Oct 2011 11:08:16 +0000 (11:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39939 a592a061-630c-0410-9148-cb99ea01b6c8

boost/extract.sh [new file with mode: 0755]

diff --git a/boost/extract.sh b/boost/extract.sh
new file mode 100755 (executable)
index 0000000..813c287
--- /dev/null
@@ -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
+
+