3 ####################################################################################
4 # File : xdata-0.5.51.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 ####################################################################################
16 # No way to check version!
22 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
23 #$DELIM ${PRODUCT_TYPE} $DELIM
24 export XDATAROOT=\${INSTALL_ROOT}/${PRODUCT}
25 export PATH=\${XDATAROOT}/bin:\${PATH}
26 export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
27 export PYTHONPATH=\${XDATAROOT}/lib${PYTHON_LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/xdata:\${PYTHONPATH}
30 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
31 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
36 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
37 #$DELIM ${PRODUCT_TYPE}_src $DELIM
41 (test -w ${PRODUCT_DIR}_SRC && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_DIR}_SRC)
42 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
46 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
47 try_existing ${PRODUCT_DIR}_SRC ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
53 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
54 source ${INSTALL_WORK}/$SHRC
56 check_jb tar xfz ${SRC_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
58 # to generate environment scripts
62 install_source_and_build()
70 makedir ${PRODUCT_DIR}
72 check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
73 ./configure --prefix=${PRODUCT_DIR}
75 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
78 check_job ${PRODUCT_DIR}/MAKE.LOG make
79 check_job ${PRODUCT_DIR}/INSTALL.LOG make install
80 check_job ${PRODUCT_DIR}/MAKECHECK.LOG make check
82 #du -sk ${PRODUCT_DIR}_SRC > ${PRODUCT_DIR}/size.log
85 # remove sources and temporary files after building
86 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
87 test -d ${PRODUCT_DIR}_SRC && rm -fr ${PRODUCT_DIR}_SRC
90 # to generate environment scripts
96 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
97 source ${INSTALL_WORK}/$SHRC
99 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
101 # to generate environment scripts
106 export INSTALL_WORK=$2;
107 export SOURCE_DIR=$3;
108 export INSTALL_ROOT=$4;
109 export PRODUCT_SEQUENCE=$5;
110 export PRODUCT_TYPE=$6;
111 export INSTALL_PRODUCTS=$7;
115 export PRODUCT="xdata-0.5.51"
116 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
117 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}