4 if [ -n "${PYHELLO_ROOT_DIR}" ]; then
5 if [ -f ${PYHELLO_ROOT_DIR}/bin/salome/VERSION ];
6 ver=`cat ${PYHELLO_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
7 if [ "$ver" = "3.0.0" ]; then
16 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
17 #$DELIM ${PRODUCT_TYPE} $DELIM
18 export PYHELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
19 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
20 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
21 export PATH=\${PYHELLO_ROOT_DIR}/bin/salome:\${PATH}
22 export PYTHONPATH=\${PYHELLO_ROOT_DIR}/bin/salome:\${PYHELLO_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
27 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
28 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
31 # looks for the native product and collects it's environment (used by make_env())
34 if [ $? -eq 0 ] ; then
35 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
36 #$DELIM ${PRODUCT_TYPE} $DELIM
37 export PYHELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
38 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
39 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
40 export PATH=\${PYHELLO_ROOT_DIR}/bin/salome:\${PATH}
41 export PYTHONPATH=\${PYHELLO_ROOT_DIR}/bin/salome:\${PYHELLO_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
46 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
53 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
64 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
65 source ${INSTALL_WORK}/$SHRC
67 check_jb tar xfz ${SOURCE_DIR}/PYHELLObinariesV3.0.0.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="PyHelloBin" ; fi
78 export PRODUCT="PYHELLO_3.0.0"
79 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
80 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}