4 if [ -n "${CALCULATOR_ROOT_DIR}" ]; then
5 check_lib_version VERSION ${CALCULATOR_ROOT_DIR}/bin/salome
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${CALCULATOR_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
8 if [ "$ver" = "2.2.5" ]; then
17 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
18 #$DELIM ${PRODUCT_TYPE} $DELIM
19 export CALCULATOR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
20 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
21 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
22 export PATH=\${CALCULATOR_ROOT_DIR}/bin/salome:\${PATH}
23 export PYTHONPATH=\${CALCULATOR_ROOT_DIR}/bin/salome:\${CALCULATOR_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
28 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
29 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
32 # looks for the native product and collects it's environment (used by make_env())
35 if [ $? -eq 0 ] ; then
36 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
37 #$DELIM ${PRODUCT_TYPE} $DELIM
38 export CALCULATOR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
39 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
40 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
41 export PATH=\${CALCULATOR_ROOT_DIR}/bin/salome:\${PATH}
42 export PYTHONPATH=\${CALCULATOR_ROOT_DIR}/bin/salome:\${CALCULATOR_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
47 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
54 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
65 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
66 source ${INSTALL_WORK}/$SHRC
68 check_jb tar xfz ${SOURCE_DIR}/CALCULATORbinariesV2.2.5.tar.gz -C ${INSTALL_ROOT}
74 export INSTALL_WORK=$2;
76 export INSTALL_ROOT=$4;
77 export PRODUCT_SEQUENCE=$5;
78 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="CALCULATORBin" ; fi
79 export PRODUCT="CALCULATOR_2.2.5"
80 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
81 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}