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 # There is no possibility to check version number
27 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
28 #$DELIM ${PRODUCT_TYPE}_src $DELIM
29 export DATA_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
32 (test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
33 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
37 try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
43 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
44 source ${INSTALL_WORK}/$SHRC
46 check_jb tar xfz ${SRC_DIR}/SAMPLESsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
48 # to generate environment scripts
52 install_source_and_build()
63 export INSTALL_WORK=$2;
65 export INSTALL_ROOT=$4;
66 export PRODUCT_SEQUENCE=$5;
67 export PRODUCT_TYPE=$6;
68 export INSTALL_PRODUCTS=$7;
70 export PRODUCT="SAMPLES_${VERSION}"
71 export PRODUCT_SRC="SAMPLES_SRC_${VERSION}"
72 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
73 export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}