3 ####################################################################################
4 # File : PYHELLO_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 "${PYHELLO_SRC_DIR}" ]; then
17 if [ -f ${PYHELLO_SRC_DIR}/bin/VERSION ]; then
18 ver=`cat ${PYHELLO_SRC_DIR}/bin/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
19 if [ "$ver" = "3.2.3" ]; then
28 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
29 #$DELIM ${PRODUCT_TYPE} $DELIM
30 export PYHELLO_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
33 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
34 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
37 # looks for the native product and collects it's environment (used by make_env())
40 if [ $? -eq 0 ] ; then
41 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
42 #$DELIM ${PRODUCT_TYPE} $DELIM
43 export PYHELLO_SRC_DIR=${PYHELLO_SRC_DIR}
46 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
53 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
59 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
60 source ${INSTALL_WORK}/$SHRC
62 check_jb tar xfz ${SOURCE_DIR}/PYHELLOsourcesV3.2.3.tar.gz -C ${INSTALL_ROOT}
73 export INSTALL_WORK=$2;
75 export INSTALL_ROOT=$4;
76 export PRODUCT_SEQUENCE=$5;
77 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="PyHelloSrc" ; fi
78 export PRODUCT="PYHELLO_SRC_3.2.3"
79 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
80 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}