4 if [ -n "${BOOSTDIR}" ]; then
5 ver=`egrep 'BOOST_VERSION [0-9]+' ${BOOSTDIR}/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'`
6 if [ "$ver" = "103100" ]; then
15 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
16 #$DELIM ${PRODUCT_TYPE} $DELIM
17 export BOOSTDIR=\${INSTALL_ROOT}/${PRODUCT}
20 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
21 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
24 # looks for the native product and collects it's environment (used by make_env())
26 echo "It is impossible to use native BOOST 1.31.0."
31 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
37 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
38 source ${INSTALL_WORK}/$SHRC
40 check_jb tar xfz ${SOURCE_DIR}/boost-1.31.0.tar.gz -C ${INSTALL_ROOT}
41 rm -fr ${PRODUCT_WORK}
47 echo "It impossible to install BOOST 1.31.0 from binaries, try to install it from sources."
52 export INSTALL_WORK=$2;
54 export INSTALL_ROOT=$4;
55 export PRODUCT_SEQUENCE=$5;
56 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="boost" ; fi
57 export PRODUCT="boost-1.31.0"
58 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
59 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}