4 if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
5 check_lib_version VERSION ${GHS3DPLUGIN_ROOT_DIR}/bin/salome
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${GHS3DPLUGIN_ROOT_DIR}/bin/salome/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 GHS3DPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
21 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
22 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
23 export LD_LIBRARY_PATH=\${GHS3DPLUGIN_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
24 export PYTHONPATH=\${GHS3DPLUGIN_ROOT_DIR}/lib/salome:\${GHS3DPLUGIN_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 GHS3DPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
40 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
41 if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
42 export LD_LIBRARY_PATH=\${GHS3DPLUGIN_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
43 export PYTHONPATH=\${GHS3DPLUGIN_ROOT_DIR}/lib/salome:\${GHS3DPLUGIN_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}/GHS3DPLUGINbinariesV2.2.8.tar.gz -C ${INSTALL_ROOT}
71 # modify all *.la files
72 export GHS3DPLUGIN_ROOT_DIR=${PRODUCT_DIR}
73 modif_la_files ${PRODUCT_DIR}/lib/salome
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="GHS3DPLUGINBin" ; fi
84 export PRODUCT="GHS3DPLUGIN_2.2.8"
85 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
86 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}