4 #we don't know anything about version
9 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
10 #$DELIM ${PRODUCT_TYPE} $DELIM
11 export HELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
12 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
13 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
14 export PATH=\${HELLO_ROOT_DIR}/bin/salome:\${PATH}
15 export LD_LIBRARY_PATH=\${HELLO_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
16 export PYTHONPATH=\${HELLO_ROOT_DIR}/bin/salome:\${HELLO_ROOT_DIR}/lib/salome:\${HELLO_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
21 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
22 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
25 # looks for the native product and collects it's environment (used by make_env())
28 if [ $? -eq 0 ] ; then
29 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
30 #$DELIM ${PRODUCT_TYPE} $DELIM
31 export HELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
32 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
33 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
34 export PATH=\${HELLO_ROOT_DIR}/bin/salome:\${PATH}
35 export LD_LIBRARY_PATH=\${HELLO_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
36 export PYTHONPATH=\${HELLO_ROOT_DIR}/bin/salome:\${HELLO_ROOT_DIR}/lib/salome:\${HELLO_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
41 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
48 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}/HELLObinariesV2.2.5.tar.gz -C ${INSTALL_ROOT}
68 export INSTALL_WORK=$2;
70 export INSTALL_ROOT=$4;
71 export PRODUCT_SEQUENCE=$5;
72 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HelloBin" ; fi
73 export PRODUCT="HELLO_2.2.5"
74 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
75 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}