3 ####################################################################################
5 # Created : Thu Dec 18 12:01:00 2002
6 # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
8 # Module : Installation Wizard
9 # Copyright : 2002-2006 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
16 if [ -n "${SMESH_ROOT_DIR}" ]; then
17 check_lib_version VERSION ${SMESH_ROOT_DIR}/bin/salome
18 if [ "$?" -eq "0" ]; then
19 ver=`cat ${SMESH_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
20 if [ "$ver" = "3.2.3" ]; then
29 if test `uname -m` = "x86_64" ; then
34 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
35 #$DELIM ${PRODUCT_TYPE} $DELIM
36 export SMESH_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
37 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
38 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
39 export PATH=\${SMESH_ROOT_DIR}/bin/salome:\${PATH}
40 export LD_LIBRARY_PATH=\${SMESH_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
41 export PYTHONPATH=\${SMESH_ROOT_DIR}/bin/salome:\${SMESH_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SMESH_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
46 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
47 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
50 # looks for the native product and collects it's environment (used by make_env())
53 if test `uname -m` = "x86_64" ; then
58 if [ $? -eq 0 ] ; then
59 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
60 #$DELIM ${PRODUCT_TYPE} $DELIM
61 export SMESH_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
62 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
63 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
64 export PATH=\${SMESH_ROOT_DIR}/bin/salome:\${PATH}
65 export LD_LIBRARY_PATH=\${SMESH_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
66 export PYTHONPATH=\${SMESH_ROOT_DIR}/bin/salome:\${SMESH_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${SMESH_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
71 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
78 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
89 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
90 source ${INSTALL_WORK}/$SHRC
92 check_jb tar xfz ${SOURCE_DIR}/SMESHbinariesV3.2.3.tar.gz -C ${INSTALL_ROOT}
94 # modify all *.la files
95 export SMESH_ROOT_DIR=${PRODUCT_DIR}
96 modif_la_files ${PRODUCT_DIR}
102 export INSTALL_WORK=$2;
103 export SOURCE_DIR=$3;
104 export INSTALL_ROOT=$4;
105 export PRODUCT_SEQUENCE=$5;
106 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="SmeshBin" ; fi
107 export PRODUCT="SMESH_3.2.3"
108 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
109 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}