4 # No way to check version!
9 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
10 #$DELIM ${PRODUCT_TYPE} $DELIM
11 export HXX2SALOME_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}/bin
12 export PATH=\${HXX2SALOME_ROOT_DIR}:\${PATH}
15 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
16 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
19 # looks for the native product and collects it's environment (used by make_env())
21 HXX2SALOME_ROOT_DIR="`find_in_path hxx2salome ${PATH}`"
22 if [ -n "${adir}" ] ; then
23 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
24 #$DELIM ${PRODUCT_TYPE} $DELIM
25 export HXX2SALOME_ROOT_DIR=${HXX2SALOME_ROOT_DIR}
26 export PATH=\${HXX2SALOME_ROOT_DIR}:\${PATH}
29 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
36 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
42 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
43 source ${INSTALL_WORK}/$SHRC
45 makedir ${PRODUCT_DIR}
47 check_jb tar xfz ${SOURCE_DIR}/HXX2SALOME.tar.gz -C ${INSTALL_WORK}
49 cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
54 check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./build_configure
55 cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF
60 check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
63 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
66 check_job ${PRODUCT_DIR}/MAKE.LOG make
68 check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
70 #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
71 cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
78 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
79 source ${INSTALL_WORK}/$SHRC
81 check_jb tar xfz ${SOURCE_DIR}/HXX2SALOME.tar.gz -C ${INSTALL_ROOT}
88 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} ${PRODUCT_DIR}
92 export INSTALL_WORK=$2;
94 export INSTALL_ROOT=$4;
95 export PRODUCT_SEQUENCE=$5;
96 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HXX2SALOME" ; fi
97 export PRODUCT="HXX2SALOME"
98 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
99 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}