4 if [ -n "${SUPERV_ROOT_DIR=}" ]; then
5 check_lib_version VERSION ${SUPERV_ROOT_DIR}/bin/salome
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${SUPERV_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
8 if [ "$ver" = "2.2.9" ]; then
17 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
18 #$DELIM ${PRODUCT_TYPE} $DELIM
19 export SUPERV_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
20 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
21 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
22 export PATH=\${SUPERV_ROOT_DIR}/bin/salome:\${PATH}
23 export LD_LIBRARY_PATH=\${SUPERV_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
24 export PYTHONPATH=\${SUPERV_ROOT_DIR}/bin/salome:\${SUPERV_ROOT_DIR}/lib/salome:\${SUPERV_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
29 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
30 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
33 # looks for the native product and collects it's environment (used by make_env())
36 if [ $? -eq 0 ] ; then
37 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
38 #$DELIM ${PRODUCT_TYPE} $DELIM
39 export SUPERV_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
40 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
41 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
42 export PATH=\${SUPERV_ROOT_DIR}/bin/salome:\${PATH}
43 export LD_LIBRARY_PATH=\${SUPERV_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
44 export PYTHONPATH=\${SUPERV_ROOT_DIR}/bin/salome:\${SUPERV_ROOT_DIR}/lib/salome:\${SUPERV_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
49 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
56 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
67 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
68 source ${INSTALL_WORK}/$SHRC
70 check_jb tar xfz ${SOURCE_DIR}/SUPERVbinariesV2.2.9.tar.gz -C ${INSTALL_ROOT}
72 # modify all *.la files
73 export SUPERV_ROOT_DIR=${PRODUCT_DIR}
74 modif_la_files ${PRODUCT_DIR}
80 export INSTALL_WORK=$2;
82 export INSTALL_ROOT=$4;
83 export PRODUCT_SEQUENCE=$5;
84 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="SupervBin" ; fi
85 export PRODUCT="SUPERV_2.2.9"
86 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
87 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}