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-2007 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
16 # No way to check version!
22 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
23 #$DELIM ${PRODUCT_TYPE} $DELIM
24 export PATH=\${INSTALL_ROOT}/${SINGLE_DIR:-${PRODUCT}}/DISTENE/Tools/TetMesh-GHS3D4.0/bin:\$PATH
27 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
28 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
33 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
34 #$DELIM ${PRODUCT_TYPE}_src $DELIM
38 (test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
39 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
43 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
44 try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
50 echo "It's impossible to install ${PRODUCT} from sources"
53 install_source_and_build()
60 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
61 source ${INSTALL_WORK}/$SHRC
63 # create a product directory
64 test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
66 check_jb tar xfz ${BIN_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
68 # to generate environment scripts
73 export INSTALL_WORK=$2;
75 export INSTALL_ROOT=$4;
76 export PRODUCT_SEQUENCE=$5;
77 export PRODUCT_TYPE=$6;
78 export INSTALL_PRODUCTS=$7;
83 test $# == 10 && shift && SINGLE_DIR=$9
84 export PRODUCT="ghs3d-4.0"
85 export PRODUCT_DIR=${INSTALL_ROOT}/${SINGLE_DIR:-${PRODUCT}}
86 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
87 export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT}_SRC