3 ####################################################################################
4 # File : HXX2SALOMEDOC.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-2007 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
18 # No way to check version!
23 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
24 #$DELIM ${PRODUCT_TYPE} $DELIM
28 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
29 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
34 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
35 #$DELIM ${PRODUCT_TYPE}_src $DELIM
39 (test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
40 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
44 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
45 try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
50 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
51 source ${INSTALL_WORK}/$SHRC
53 check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEDOCsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
55 # to generate environment scripts
59 install_source_and_build()
64 # remove sources and temporary files after building
65 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
66 test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
69 # to generate environment scripts
74 echo "It's impossible to install ${PRODUCT} from binaries"
76 # to generate environment scripts
83 export INSTALL_WORK=$2;
85 export INSTALL_ROOT=$4;
86 export PRODUCT_SEQUENCE=$5;
87 export PRODUCT_TYPE=$6;
88 export INSTALL_PRODUCTS=$7;
91 export PRODUCT="HXX2SALOMEDOC_${VERSION}"
92 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
93 export PRODUCT_SRC_DIR=${INSTALL_ROOT}/"HXX2SALOMEDOC_SRC_${VERSION}"