summaryrefslogtreecommitdiffstats
path: root/contrib/local/bcp-boost.sh
blob: 0e2a1caa3a622d4b78e5764db091e169d815e643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

ME=`basename $0`
DIR="$( cd "$( dirname "$0" )" && pwd )"
CWD=`pwd`

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

cd ${DIR}

SOURCE_FILES=`find ${DIR}/../../src/ -name \*.h -print -o -name \*.cpp -print`

${BOOST_DIR}/dist/bin/bcp \
--boost=${BOOST_DIR} \
--scan ${SOURCE_FILES} \
${DIR}/../src

# rm -rf ${DIR}/../prebuilt/include/libs