# modify all *.la files
export ATOMGEN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMGENConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMGENTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export ATOMIC_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMICConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMICTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export ATOMSOLV_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMSOLVConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMSOLVTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export BLSURFPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeBLSURFPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeBLSURFPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export CALCULATOR_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-
-cd ${PRODUCT_DIR}/bin/salome
-sed -e "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g" runAppli > _runAppli
-sed -e "s%export CALCULATOR_ROOT_DIR=.*%export CALCULATOR_ROOT_DIR=${CALCULATOR_ROOT_DIR}%g" _runAppli > runAppli
-rm -f _runAppli
-chmod a+x runAppli
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeCALCULATORConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeCALCULATORTargets-release.cmake
+sed -i "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g;s%export CALCULATOR_ROOT_DIR=.*%export CALCULATOR_ROOT_DIR=${CALCULATOR_ROOT_DIR}%g" ${PRODUCT_DIR}/bin/salome/runAppli
# to generate environment scripts
try_preinstalled
# modify all *.la files
export COMPONENT_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeCOMPONENTConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeCOMPONENTTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export GEOM_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGEOMConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGEOMTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export GHS3DPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGHS3DPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGHS3DPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export GHS3DPRLPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGHS3DPRLPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGHS3DPRLPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export GUI_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGUIConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGUITargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HELLO_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-
-cd ${PRODUCT_DIR}/bin/salome
-sed -e "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g" runAppli > _runAppli
-sed -e "s%export HELLO_ROOT_DIR=.*%export HELLO_ROOT_DIR=${HELLO_ROOT_DIR}%g" _runAppli > runAppli
-rm -f _runAppli
-chmod a+x runAppli
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHELLOConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHELLOTargets-release.cmake
+sed -i "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g;s%export HELLO_ROOT_DIR=.*%export HELLO_ROOT_DIR=${HELLO_ROOT_DIR}%g" ${PRODUCT_DIR}/bin/salome/runAppli
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HEXABLOCK_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHEXABLOCKConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHEXABLOCKTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HEXABLOCKPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHEXABLOCKPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHEXABLOCKPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HOMARD_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHOMARDConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHOMARDTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HexoticPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHexoticPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHexoticPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export JOBMANAGER_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeJOBMANAGERConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeJOBMANAGERTargets-release.cmake
# to generate environment scripts
try_preinstalled
check_jb tar xfz ${SOURCE_DIR}/KERNELbinariesV${SALOME_VERSION}.tar.gz -C ${PRODUCT_DIR}
check_jb tar xfz ${SRC_DIR}/KERNELsourcesV${SALOME_VERSION}.tar.gz -C ${INST_ROOT}
-# The next two symbolic links are created only for Red Hat 9 and Scientific Linux 3.0.5
-if [ -f /lib/libcrypto.so.0.9.7a ]; then
- ln -sf /lib/libcrypto.so.0.9.7a ${PRODUCT_DIR}/lib/salome/libcrypto.so.2
-fi
-if [ -f /lib/libssl.so.0.9.7a ]; then
- ln -sf /lib/libssl.so.0.9.7a ${PRODUCT_DIR}/lib/salome/libssl.so.2
-fi
-
# modify all *.la files
export KERNEL_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeKERNELConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeKERNELTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export LIGHT_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeLIGHTConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeLIGHTTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export MED_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeMEDConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeMEDTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export NETGENPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeNETGENPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeNETGENPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export PARAVIS_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePARAVISConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePARAVISTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export PYCALCULATOR_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYCALCULATORConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYCALCULATORTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export PYHELLO_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-
-cd ${PRODUCT_DIR}/bin/salome
-sed -e "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g" runAppli > _runAppli
-sed -e "s%export PYHELLO_ROOT_DIR=.*%export PYHELLO_ROOT_DIR=${PYHELLO_ROOT_DIR}%g" _runAppli > runAppli
-chmod a+x runAppli
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYHELLOConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYHELLOTargets-release.cmake
+sed -e "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g;s%export PYHELLO_ROOT_DIR=.*%export PYHELLO_ROOT_DIR=${PYHELLO_ROOT_DIR}%g" ${PRODUCT_DIR}/bin/salome/runAppli
# to generate environment scripts
try_preinstalled
# modify all *.la files
export PYLIGHT_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYLIGHTConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYLIGHTTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export RANDOMIZER_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeRANDOMIZERConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeRANDOMIZERTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export SIERPINSKY_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeSIERPINSKYConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeSIERPINSKYTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export SMESH_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeSMESHConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeSMESHTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export YACS_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeYACSConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeYACSTargets-release.cmake
# to generate environment scripts
try_preinstalled
}
modif_la_files(){
+return 0
+# obsolete
ldir=$1
if [ -z "${ldir}" ] || [ ! -d "${ldir}" ]; then return 1; fi
cd ${srcdir}
return 0
}
+
+modif_cfg_file(){
+ local nf=$1
+ if [ "${nf}" = "" ] || [ ! -e ${nf} ] ; then
+ return
+ fi
+ if [ "${PYTHON_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/Python-[0-9.]\+%\1${PYTHON_ROOT_DIR}%g" $1
+ fi
+ if [ "${SWIG_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/swig-[0-9.]\+%\1${SWIG_ROOT_DIR}%g" $1
+ fi
+ if [ "${OMNIORB_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/omniORB-[0-9.]\+%\1${OMNIORB_ROOT_DIR}%g" $1
+ fi
+ if [ "${HDF5_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/hdf5-[0-9.]\+%\1${HDF5_ROOT_DIR}%g" $1
+ fi
+ if [ "${BOOST_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/boost-[0-9.]\+%\1${BOOST_ROOT_DIR}%g" $1
+ fi
+ if [ "${MEDFILE_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/med-[0-9.]\+%\1${MEDFILE_ROOT_DIR}%g" $1
+ fi
+ if [ "${QT4_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/qt-[0-9.]\+%\1${QT4_ROOT_DIR}%g" $1
+ fi
+ if [ "${SIP_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/sip-[0-9.]\+%\1${SIP_ROOT_DIR}%g" $1
+ fi
+ if [ "${PYQT4_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/PyQt-[0-9.]\+%\1${PYQT4_ROOT_DIR}%g" $1
+ fi
+ if [ "${QSCINTILLA_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/QScintilla-[0-9.]\+%\1${QSCINTILLA_ROOT_DIR}%g" $1
+ fi
+ if [ "${PARAVIEW_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/ParaView-[0-9.]\+%\1${PARAVIEW_ROOT_DIR}%g" $1
+ fi
+ if [ "${LIBXML2_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/libxml2-[0-9.]\+%\1${LIBXML2_ROOT_DIR}%g" $1
+ fi
+ if [ "${EXPAT_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/expat-[0-9.]\+%\1${EXPAT_ROOT_DIR}%g" $1
+ fi
+ if [ "${FREETYPE_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/freetype-[0-9.]\+%\1${FREETYPE_ROOT_DIR}%g" $1
+ fi
+ if [ "${FREEIMAGE_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/freeimage-[0-9.]\+%\1${FREEIMAGE_ROOT_DIR}%g" $1
+ fi
+ if [ "${GL2PS_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/gl2ps-[0-9.]\+%\1${GL2PS_ROOT_DIR}%g" $1
+ fi
+ if [ "${TBB_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/tbb[^/]\+%\1${TBB_ROOT_DIR}%g" $1
+ fi
+ if [ "${CAS_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/OCCT[^/]*%\1${CAS_ROOT_DIR}%g" $1
+ fi
+ if [ "${NETGEN_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/netgen-[0-9.]\+%\1${NETGEN_ROOT_DIR}%g" $1
+ fi
+ if [ "${NUMPY_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/numpy-[0-9.]\+%\1${NUMPY_ROOT_DIR}%g" $1
+ fi
+ if [ "${GRAPHVIZ_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/graphviz-[0-9.]\+%\1${GRAPHVIZ_ROOT_DIR}%g" $1
+ fi
+ if [ "${DOXYGEN_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/doxygen-[0-9.]\+%\1${DOXYGEN_ROOT_DIR}%g" $1
+ fi
+ if [ "${SPHINX_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/Sphinx-[0-9.]\+%\1${SPHINX_ROOT_DIR}%g" $1
+ fi
+ if [ "${WSO2_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/wso2-wsf-cpp-[0-9.]\+%\1${WSO2_ROOT_DIR}%g" $1
+ fi
+ if [ "$MESHGEMS{_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/MeshGems-[0-9.]\+%\1${MESHGEMS_ROOT_DIR}%g" $1
+ fi
+ local sm
+ local smvar
+ for sm in LIBBATCH SIMANIO KERNEL GUI GEOM MED SMESH PARAVIS YACS HEXABLOCK HOMARD JOBMANAGER \
+ NETGENPLUGIN BLSURFPLUGIN GHS3DPLUGIN GHS3DPRLPLUGIN HexoticPLUGIN HEXABLOCKPLUGIN \
+ CALCULATOR PYCALCULATOR COMPONENT HELLO PYHELLO LIGHT PYLIGHT ATOMIC ATOMGEN ATOMSOLV RANDOMIZER SIERPINSKY ; do
+ smvar=${sm}_ROOT_DIR
+ if [ "${!smvar}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/${sm}[^/]*%\1${!smvar}%g" $1
+ fi
+ done
+}