4 if [ -n "${GEOM_SRC_DIR}" ]; then
5 check_lib_version VERSION ${GEOM_SRC_DIR}/bin
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${GEOM_SRC_DIR}/bin/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
8 if [ "$ver" = "2.2.9" ]; then
17 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
18 #$DELIM ${PRODUCT_TYPE} $DELIM
19 export GEOM_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
22 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
23 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
26 # looks for the native product and collects it's environment (used by make_env())
29 if [ $? -eq 0 ] ; then
30 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
31 #$DELIM ${PRODUCT_TYPE} $DELIM
32 export GEOM_SRC_DIR=${GEOM_SRC_DIR}
35 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
42 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
48 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
49 source ${INSTALL_WORK}/$SHRC
51 check_jb tar xfz ${SOURCE_DIR}/GEOMsourcesV2.2.9.tar.gz -C ${INSTALL_ROOT}
62 export INSTALL_WORK=$2;
64 export INSTALL_ROOT=$4;
65 export PRODUCT_SEQUENCE=$5;
66 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GeomSrc" ; fi
67 export PRODUCT="GEOM_SRC_2.2.9"
68 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
69 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}