3 ####################################################################################
4 # File : PYCALCULATOR_SRC.sh
5 # Created : Thu Dec 18 12:01:00 2002
6 # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
8 # Module : Installation Wizard
9 # Copyright : 2002-2006 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
16 if [ -n "${PYCALCULATOR_SRC_DIR}" ]; then
17 check_lib_version VERSION ${PYCALCULATOR_SRC_DIR}/bin
18 if [ "$?" -eq "0" ]; then
19 ver=`cat ${PYCALCULATOR_SRC_DIR}/bin/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
20 if [ "$ver" = "3.2.4" ]; then
29 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
30 #$DELIM ${PRODUCT_TYPE} $DELIM
31 export PYCALCULATOR_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
34 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
35 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
38 # looks for the native product and collects it's environment (used by make_env())
41 if [ $? -eq 0 ] ; then
42 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
43 #$DELIM ${PRODUCT_TYPE} $DELIM
44 export PYCALCULATOR_SRC_DIR=${PYCALCULATOR_SRC_DIR}
47 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
54 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
60 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
61 source ${INSTALL_WORK}/$SHRC
63 check_jb tar xfz ${SOURCE_DIR}/PYCALCULATORsourcesV3.2.4.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="PyCalculatorSrc" ; fi
79 export PRODUCT="PYCALCULATOR_SRC_3.2.4"
80 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
81 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}