summaryrefslogtreecommitdiffstats
path: root/contrib/local/bcp-boost.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/local/bcp-boost.sh')
-rwxr-xr-xcontrib/local/bcp-boost.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/contrib/local/bcp-boost.sh b/contrib/local/bcp-boost.sh
index 0371214..0e2a1ca 100755
--- a/contrib/local/bcp-boost.sh
+++ b/contrib/local/bcp-boost.sh
@@ -4,13 +4,22 @@ ME=`basename $0`
DIR="$( cd "$( dirname "$0" )" && pwd )"
CWD=`pwd`
-SOURCE_FILES=`find ${DIR}/../../src/ -name \*.h -print -o -name \*.cpp -print`
+BOOST_DIR=$1
+if [ ! -d ${BOOST_DIR} ]; then
+ echo "First argument is supposed to be the path to the boost source code"
+ exit
+fi
+
+cd $BOOST_DIR
+./bootstrap.sh
+./b2 tools/bcp
-# echo ${ARABICA_FILES}
-# exit
+cd ${DIR}
+
+SOURCE_FILES=`find ${DIR}/../../src/ -name \*.h -print -o -name \*.cpp -print`
-/Users/sradomski/Documents/TK/Code/boost_1_60_0/dist/bin/bcp \
---boost=/Users/sradomski/Documents/TK/Code/boost_1_60_0 \
+${BOOST_DIR}/dist/bin/bcp \
+--boost=${BOOST_DIR} \
--scan ${SOURCE_FILES} \
${DIR}/../src