3 ####################################################################################
4 # File : GHS3DPLUGIN_SRC.sh
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 "${GHS3DPLUGIN_SRC_DIR}" ]; then
17 check_lib_version VERSION ${GHS3DPLUGIN_SRC_DIR}/bin
18 if [ "$?" -eq "0" ]; then
19 ver=`cat ${GHS3DPLUGIN_SRC_DIR}/bin/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
20 if [ "$ver" = "3.2.3" ]; then
30 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
31 #$DELIM ${PRODUCT_TYPE} $DELIM
32 export GHS3DPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
35 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
36 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
39 # looks for the native product and collects it's environment (used by make_env())
42 if [ $? -eq 0 ] ; then
43 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
44 #$DELIM ${PRODUCT_TYPE} $DELIM
45 export GHS3DPLUGIN_SRC_DIR=${GHS3DPLUGIN_SRC_DIR}
48 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
55 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
61 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
62 source ${INSTALL_WORK}/$SHRC
64 check_jb tar xfz ${SOURCE_DIR}/GHS3DPLUGINsourcesV3.2.3.tar.gz -C ${INSTALL_ROOT}
75 export INSTALL_WORK=$2;
77 export INSTALL_ROOT=$4;
78 export PRODUCT_SEQUENCE=$5;
79 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GHS3DPLUGINSrc" ; fi
80 export PRODUCT="GHS3DPLUGIN_SRC_3.2.3"
81 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
82 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}