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 ####################################################################################
18 # No way to check version!
23 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
24 #$DELIM ${PRODUCT_TYPE} $DELIM
25 export HXX2SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}/bin
26 export PATH=\${HXX2SALOME_ROOT_DIR}:\${PATH}
29 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
30 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
35 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
36 #$DELIM ${PRODUCT_TYPE}_src $DELIM
40 (test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
41 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
45 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
46 try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
52 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
53 source ${INSTALL_WORK}/$SHRC
55 check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
57 # to generate environment scripts
61 install_source_and_build()
67 makedir ${PRODUCT_DIR}
69 cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
74 check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./build_configure
75 cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
80 check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
83 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
86 check_job ${PRODUCT_DIR}/MAKE.LOG make
88 check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
90 #du -sk ${PRODUCT_SRC_DIR} > ${PRODUCT_DIR}/size.log
93 # remove sources and temporary files after building
94 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
95 test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
98 # to generate environment scripts
104 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
105 source ${INSTALL_WORK}/$SHRC
107 check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
109 # to generate environment scripts
114 export INSTALL_WORK=$2;
115 export SOURCE_DIR=$3;
116 export INSTALL_ROOT=$4;
117 export PRODUCT_SEQUENCE=$5;
118 export PRODUCT_TYPE=$6;
119 export INSTALL_PRODUCTS=$7;
122 export PRODUCT="HXX2SALOME_${VERSION}"
123 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
124 export PRODUCT_SRC_DIR=${INSTALL_ROOT}/"HXX2SALOME_SRC_${VERSION}"