4 ver=`egrep 'BOOST_VERSION [0-9]+' ${BOOSTDIR}/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'`
5 if [ "$ver" = "103002" ]; then
13 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
14 #$DELIM ${PRODUCT_TYPE} $DELIM
15 export BOOSTDIR=\${INSTALL_ROOT}/${PRODUCT}
18 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
19 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
22 # looks for the native product and collects it's environment (used by make_env())
24 echo "It is impossible to use native BOOST."
29 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
35 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
36 source ${INSTALL_WORK}/$SHRC
38 check_jb tar xfz ${SOURCE_DIR}/boost-1.30.2.tgz -C ${INSTALL_ROOT}
45 echo "It impossible to install BOOST from binaries, try install from sources."
50 export INSTALL_WORK=$2;
52 export INSTALL_ROOT=$4;
53 export PRODUCT_SEQUENCE=$5;
54 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="boost" ; fi
55 export PRODUCT="boost-1.30.2"
56 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
57 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}