4 if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
5 check_lib_version VERSION ${NETGENPLUGIN_ROOT_DIR}/bin/salome
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${NETGENPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
8 if [ "$ver" = "3.2.0b1" ]; then
18 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
19 #$DELIM ${PRODUCT_TYPE} $DELIM
20 export NETGENPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
21 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
22 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
23 export LD_LIBRARY_PATH=\${NETGENPLUGIN_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
24 export PYTHONPATH=\${NETGENPLUGIN_ROOT_DIR}/lib/salome:\${NETGENPLUGIN_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
29 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
30 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
33 # looks for the native product and collects it's environment (used by make_env())
36 if [ $? -eq 0 ] ; then
37 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
38 #$DELIM ${PRODUCT_TYPE} $DELIM
39 export NETGENPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
40 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
41 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
42 export LD_LIBRARY_PATH=\${NETGENPLUGIN_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
43 export PYTHONPATH=\${NETGENPLUGIN_ROOT_DIR}/lib/salome:\${NETGENPLUGIN_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
48 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
55 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
66 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
67 source ${INSTALL_WORK}/$SHRC
69 check_jb tar xfz ${SOURCE_DIR}/NETGENPLUGINbinariesV3.2.0b1.tar.gz -C ${INSTALL_ROOT}
71 # modify all *.la files
72 export NETGENPLUGIN_ROOT_DIR=${PRODUCT_DIR}
73 modif_la_files ${PRODUCT_DIR}
79 export INSTALL_WORK=$2;
81 export INSTALL_ROOT=$4;
82 export PRODUCT_SEQUENCE=$5;
83 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="NETGENPLUGINBin" ; fi
84 export PRODUCT="NETGENPLUGIN_3.2.0b1"
85 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
86 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}