4 if [ -n "${HELLO_ROOT_DIR}" ]; then
5 if [ -f ${HELLO_ROOT_DIR}/bin/salome/VERSION ]; then
6 ver=`cat ${HELLO_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
7 if [ "$ver" = "3.2.0b1" ]; then
16 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
17 #$DELIM ${PRODUCT_TYPE} $DELIM
18 export HELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
19 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
20 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
21 export PATH=\${HELLO_ROOT_DIR}/bin/salome:\${PATH}
22 export LD_LIBRARY_PATH=\${HELLO_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
23 export PYTHONPATH=\${HELLO_ROOT_DIR}/bin/salome:\${HELLO_ROOT_DIR}/lib/salome:\${HELLO_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 HELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
39 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
40 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
41 export PATH=\${HELLO_ROOT_DIR}/bin/salome:\${PATH}
42 export LD_LIBRARY_PATH=\${HELLO_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
43 export PYTHONPATH=\${HELLO_ROOT_DIR}/bin/salome:\${HELLO_ROOT_DIR}/lib/salome:\${HELLO_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
48 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
55 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
66 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
67 source ${INSTALL_WORK}/$SHRC
69 check_jb tar xfz ${SOURCE_DIR}/HELLObinariesV3.2.0b1.tar.gz -C ${INSTALL_ROOT}
71 # modify all *.la files
72 export HELLO_ROOT_DIR=${PRODUCT_DIR}
73 modif_la_files ${PRODUCT_DIR}
79 export INSTALL_WORK=$2;
81 export INSTALL_ROOT=$4;
82 export PRODUCT_SEQUENCE=$5;
83 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HelloBin" ; fi
84 export PRODUCT="HELLO_3.2.0b1"
85 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
86 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}