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 "${HELLO_ROOT_DIR}" ]; then
17 if [ -f ${HELLO_ROOT_DIR}/bin/salome/VERSION ]; then
18 ver=`cat ${HELLO_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
19 if [ "$ver" = "3.2.4" ]; then
28 if test `uname -m` = "x86_64" ; then
33 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
34 #$DELIM ${PRODUCT_TYPE} $DELIM
35 export HELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
36 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
37 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
38 export PATH=\${HELLO_ROOT_DIR}/bin/salome:\${PATH}
39 export LD_LIBRARY_PATH=\${HELLO_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
40 export PYTHONPATH=\${HELLO_ROOT_DIR}/bin/salome:\${HELLO_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${HELLO_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
45 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
46 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
49 # looks for the native product and collects it's environment (used by make_env())
52 if test `uname -m` = "x86_64" ; then
57 if [ $? -eq 0 ] ; then
58 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
59 #$DELIM ${PRODUCT_TYPE} $DELIM
60 export HELLO_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
61 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
62 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
63 export PATH=\${HELLO_ROOT_DIR}/bin/salome:\${PATH}
64 export LD_LIBRARY_PATH=\${HELLO_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
65 export PYTHONPATH=\${HELLO_ROOT_DIR}/bin/salome:\${HELLO_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${HELLO_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
70 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
77 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
88 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
89 source ${INSTALL_WORK}/$SHRC
91 check_jb tar xfz ${SOURCE_DIR}/HELLObinariesV3.2.4.tar.gz -C ${INSTALL_ROOT}
93 # modify all *.la files
94 export HELLO_ROOT_DIR=${PRODUCT_DIR}
95 modif_la_files ${PRODUCT_DIR}
97 cd ${PRODUCT_DIR}/bin/salome
98 sed -e "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g" runAppli > _runAppli
99 sed -e "s%export HELLO_ROOT_DIR=.*%export HELLO_ROOT_DIR=${HELLO_ROOT_DIR}%g" _runAppli > runAppli
107 export INSTALL_WORK=$2;
108 export SOURCE_DIR=$3;
109 export INSTALL_ROOT=$4;
110 export PRODUCT_SEQUENCE=$5;
111 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HelloBin" ; fi
112 export PRODUCT="HELLO_3.2.4"
113 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
114 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}