4 if [ -n "${GUI_ROOT_DIR}" ]; then
5 check_lib_version VERSION ${GUI_ROOT_DIR}/bin/salome
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${GUI_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
8 if [ "$ver" = "3.2.0b1" ]; then
17 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
18 #$DELIM ${PRODUCT_TYPE} $DELIM
19 export GUI_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
20 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
21 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
22 export PATH=\${GUI_ROOT_DIR}/bin/salome:\${PATH}
23 export LD_LIBRARY_PATH=\${GUI_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
24 export PYTHONPATH=\${GUI_ROOT_DIR}/bin/salome:\${GUI_ROOT_DIR}/lib/salome:\${GUI_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
25 export SUITRoot=\${GUI_ROOT_DIR}/share/salome
26 export SalomeAppConfig=\${GUI_ROOT_DIR}/share/salome/resources
31 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
32 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
35 # looks for the native product and collects it's environment (used by make_env())
38 if [ $? -eq 0 ] ; then
39 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
40 #$DELIM ${PRODUCT_TYPE} $DELIM
41 export GUI_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
42 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
43 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
44 export PATH=\${GUI_ROOT_DIR}/bin/salome:\${PATH}
45 export LD_LIBRARY_PATH=\${GUI_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
46 export PYTHONPATH=\${GUI_ROOT_DIR}/bin/salome:\${GUI_ROOT_DIR}/lib/salome:\${GUI_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
47 export SUITRoot=\${GUI_ROOT_DIR}/share/salome
48 export SalomeAppConfig=\${GUI_ROOT_DIR}/share/salome/resources
53 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
60 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
71 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
72 source ${INSTALL_WORK}/$SHRC
74 check_jb tar xfz ${SOURCE_DIR}/GUIbinariesV3.2.0b1.tar.gz -C ${INSTALL_ROOT}
76 # modify all *.la files
77 export GUI_ROOT_DIR=${PRODUCT_DIR}
78 modif_la_files ${PRODUCT_DIR}
84 export INSTALL_WORK=$2;
86 export INSTALL_ROOT=$4;
87 export PRODUCT_SEQUENCE=$5;
88 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GUIBin" ; fi
89 export PRODUCT="GUI_3.2.0b1"
90 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
91 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}