4 if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then
5 check_lib_version VERSION ${PYCALCULATOR_ROOT_DIR}/bin/salome
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${PYCALCULATOR_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
8 if [ "$ver" = "2.2.2" ]; then
17 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
18 #$DELIM ${PRODUCT_TYPE} $DELIM
19 export PYCALCULATOR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
20 export PATH=\${PYCALCULATOR_ROOT_DIR}/bin/salome:\${PATH}
21 export PYTHONPATH=\${PYCALCULATOR_ROOT_DIR}/bin/salome:\${PYCALCULATOR_ROOT_DIR}/lib/python2.2/site-packages/salome:\${PYTHONPATH}
24 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
25 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
28 # looks for the native product and collects it's environment (used by make_env())
31 if [ $? -eq 0 ] ; then
32 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
33 #$DELIM ${PRODUCT_TYPE} $DELIM
34 export PYCALCULATOR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
35 export PATH=\${PYCALCULATOR_ROOT_DIR}/bin/salome:\${PATH}
36 export PYTHONPATH=\${PYCALCULATOR_ROOT_DIR}/bin/salome:\${PYCALCULATOR_ROOT_DIR}/lib/python2.2/site-packages/salome:\${PYTHONPATH}
39 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
46 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
57 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
58 source ${INSTALL_WORK}/$SHRC
60 check_jb tar xfz ${SOURCE_DIR}/PYCALCULATORbinariesV2.2.2.tar.gz -C ${INSTALL_ROOT}
66 export INSTALL_WORK=$2;
68 export INSTALL_ROOT=$4;
69 export PRODUCT_SEQUENCE=$5;
70 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="PyCalculatorBin" ; fi
71 export PRODUCT="PYCALCULATOR_2.2.2"
72 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
73 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}