]> git.lyx.org Git - lyx.git/blobdiff - boost/extract.sh
Cmake tests: Get rid of use of command 'env', which is not available under Windows.
[lyx.git] / boost / extract.sh
index 813c2877fb3a0deb5866c7f5a03d9ac84ed4953e..2fa7bc837151c81c5fca4a4014cd9993f8e80b57 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 #
 # Script to extract only needed boost files using the bcp tool:
@@ -7,11 +7,19 @@
 #
 # Does also work with an outdated bcp version 
 #
+# Usage: extract.sh <path to new boost version>
+#
+
+if [ -z $1 ]
+then
+    echo "Usage: extract.sh <path to new boost version>"
+    exit 1
+fi
 
 rm -rf needed
 mkdir needed
 
-bcp --boost=$PWD \
+bcp --boost=$1 \
        boost/any.hpp \
        boost/assert.hpp \
        boost/bind.hpp \
@@ -21,7 +29,6 @@ bcp --boost=$PWD \
        boost/function.hpp \
        boost/functional.hpp \
        boost/lexical_cast.hpp \
-       boost/next_prior.hpp \
        boost/noncopyable.hpp \
        boost/regex.hpp \
        boost/scoped_array.hpp \
@@ -32,6 +39,10 @@ bcp --boost=$PWD \
        boost/signals/trackable.hpp \
        boost/tokenizer.hpp \
        boost/tuple/tuple.hpp \
+    boost/mpl/string.hpp \
+    boost/mpl/fold.hpp \
+    boost/mpl/size_t.hpp \
+    boost/functional/hash.hpp \
        \
        needed
 
@@ -44,4 +55,12 @@ cp -vR needed/libs .
 
 rm -rf needed
 
+# 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
+
+