4 if [ -n "${NETGENPLUGIN_SRC_DIR}" ]; then
5 check_lib_version VERSION ${NETGENPLUGIN_SRC_DIR}/bin
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${NETGENPLUGIN_SRC_DIR}/bin/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
8 if [ "$ver" = "2.2.8" ]; then
18 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
19 #$DELIM ${PRODUCT_TYPE} $DELIM
20 export NETGENPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
23 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
24 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
27 # looks for the native product and collects it's environment (used by make_env())
30 if [ $? -eq 0 ] ; then
31 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
32 #$DELIM ${PRODUCT_TYPE} $DELIM
33 export NETGENPLUGIN_SRC_DIR=${NETGENPLUGIN_SRC_DIR}
36 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
43 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
49 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
50 source ${INSTALL_WORK}/$SHRC
52 check_jb tar xfz ${SOURCE_DIR}/NETGENPLUGINsourcesV2.2.8.tar.gz -C ${INSTALL_ROOT}
63 export INSTALL_WORK=$2;
65 export INSTALL_ROOT=$4;
66 export PRODUCT_SEQUENCE=$5;
67 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="NETGENPLUGINSrc" ; fi
68 export PRODUCT="NETGENPLUGIN_SRC_2.2.8"
69 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
70 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}