Salome HOME
README update
[tools/simanio.git] / scripts / env_products.sh
index d2003bd68fec54ecb85c825596dbc834d47a9501..4f06e12943c3b411637f047c1fe2571a2cabf4e9 100644 (file)
@@ -79,28 +79,39 @@ export $1=$out_var
 ###########################################################################
 
 #------ Setting products installation directory ------
-export INST_ROOT=/home/siman/salome_6.5.0
+#export INST_ROOT=/dn40/PRODUCTS/salome/6.x/opt/DEBIAN.6.0.64/6.6.0
+export INST_ROOT=${PWD}
 
-#------ Environment switch: 0 for SALOME building, 1 for SALOME launching ------
-export ENV_FOR_LAUNCH=1
-
-#------ License activation ------
-export LICENSE_FILE=/product/distene/dlim8.var.sh
+### Variables for OCCT 653
+### Set this variable to 1 in order to use OCCT products from ${INST_ROOT}
+### Otherwise these products will be taken from other location (devenv)
+### Default value is 0
+if [ -z "$IN_PLACE_OCCT_PRODUCTS" ] ; then
+IN_PLACE_OCCT_PRODUCTS=1
+fi
 
-if [ -e "${LICENSE_FILE}" ] ; then
-export SIMULOGD_LICENSE_FILE=29029@soleil
-source ${LICENSE_FILE}
+if [ "${IN_PLACE_OCCT_PRODUCTS}" != "1" ] ; then
+  if [ -f /dn40/PRODUCTS/salome/OCCT/salome650-occt-products/Debian60-64/env_products.sh ] ; then
+    . /dn40/PRODUCTS/salome/OCCT/salome650-occt-products/Debian60-64/env_products.sh
+  else
+    echo "ERROR: env file for CASCADE products is not found! Please contact maintenance team!"
+  fi
 fi
 
+#------ Environment switch: 0 for SALOME building, 1 for SALOME launching ------
+export ENV_FOR_LAUNCH=1
+
 #------ tcltk ------
+if [ "${IN_PLACE_OCCT_PRODUCTS}" = "1" ] ; then
 export TCLHOME=${INST_ROOT}/tcltk-8.5.8
 exportp PATH ${TCLHOME}/bin
 exportp LD_LIBRARY_PATH ${TCLHOME}/lib
 export TCLLIBPATH="${TCLHOME}/lib ${TCLHOME}/lib/tcl8.5 ${TCLHOME}/lib/tk8.5"
+fi
+##
+#------ tcltk_src ------
+# nothing to do
 ##
-## #------ tcltk_src ------
-## # nothing to do
-## ##
 #------ Python ------
 export PYTHONROOT=${INST_ROOT}/Python-2.6.6
 export PYTHONHOME=$PYTHONROOT
@@ -110,27 +121,27 @@ export PYTHON_VERSION=2.6
 export PYTHON_INCLUDE=${PYTHONROOT}/include/python${PYTHON_VERSION}
 exportp PYTHONPATH ${PYTHONROOT}/lib/python${PYTHON_VERSION}
 ##
-## #------ Python_src ------
-## # nothing to do
-## ##
+#------ Python_src ------
+# nothing to do
+##
 #------ Qt ------
 export QTDIR=${INST_ROOT}/qt-4.6.3
 exportp PATH ${QTDIR}/bin 
 exportp LD_LIBRARY_PATH ${QTDIR}/lib
 export QT_PLUGIN_PATH=${QTDIR}/plugins
 ##
-## #------ Qt_src ------
-## # nothing to do
-## ##
+#------ Qt_src ------
+# nothing to do
+##
 #------ Sip ------
 export SIPDIR=${INST_ROOT}/sip-4.13.2
 exportp PATH ${SIPDIR}/bin
 exportp PYTHONPATH ${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages
 exportp LD_LIBRARY_PATH ${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages
 ##
-## #------ Sip_src ------
-## # nothing to do
-## ##
+#------ Sip_src ------
+# nothing to do
+##
 #------ PyQt ------
 export PYQTDIR=${INST_ROOT}/PyQt-4.9.1
 export PYQT_SIPS=${PYQTDIR}/sip
@@ -138,80 +149,91 @@ exportp PATH ${PYQTDIR}/bin
 exportp PYTHONPATH ${PYQTDIR}:${PYQTDIR}/PyQt4
 exportp LD_LIBRARY_PATH ${PYQTDIR}/PyQt4
 ##
-## #------ PyQt_src ------
-## # nothing to do
-## ##
+#------ PyQt_src ------
+# nothing to do
+##
 #------ QScintilla ------
 export QSCINTILLA_DIR=${INST_ROOT}/QScintilla-2.6.1
 exportp LD_LIBRARY_PATH ${QSCINTILLA_DIR}/lib
 ##
-## #------ QScintilla_src ------
-## # nothing to do
-## ##
+#------ QScintilla_src ------
+# nothing to do
+##
 #------ boost ------ 
 export BOOSTDIR=${INST_ROOT}/boost-1.49.0
 exportp LD_LIBRARY_PATH ${BOOSTDIR}/lib
 exportp PATH ${BOOSTDIR}/include
 ##
-## #------ boost_src ------
-## # nothing to do
-## ##
+#------ boost_src ------
+# nothing to do
+##
 #------ Swig ------ 
 export SWIG_ROOT=${INST_ROOT}/swig-1.3.40
 exportp PATH ${SWIG_ROOT}/bin
 export SWIG_LIB=${SWIG_ROOT}/share/swig/1.3.40
 ##
-## #------ Swig_src ------
-## # nothing to do
-## ##
+#------ Swig_src ------
+# nothing to do
+##
 #------ freetype ------
-export FREETYPEDIR=${INST_ROOT}/freetype-2.3.7
+if [ "${IN_PLACE_OCCT_PRODUCTS}" = "1" ] ; then
+export FREETYPEDIR=${INST_ROOT}/freetype-2.4.10
 exportp LD_LIBRARY_PATH ${FREETYPEDIR}/lib
+fi
+##
+#------ freetype_src ------
+# nothing to do
 ##
-## #------ freetype_src ------
-## # nothing to do
-## ##
 #------ ftgl ------
-export FTGLDIR=${INST_ROOT}/ftgl-2.1.2
+if [ "${IN_PLACE_OCCT_PRODUCTS}" = "1" ] ; then
+export FTGLDIR=${INST_ROOT}/ftgl-2.1.3
 exportp PATH ${FTGLDIR}/bin 
 exportp LD_LIBRARY_PATH ${FTGLDIR}/lib
+fi
+##
+#------ ftgl_src ------
+# nothing to do
 ##
-## #------ ftgl_src ------
-## # nothing to do
-## ##
 #------ freeimage ------
+if [ "${IN_PLACE_OCCT_PRODUCTS}" = "1" ] ; then
 export FREEIMAGEDIR=${INST_ROOT}/freeimage-3.14.1
 exportp PATH ${FREEIMAGEDIR}/bin 
 exportp LD_LIBRARY_PATH ${FREEIMAGEDIR}/lib
+fi
+##
+#------ freeimage_src ------
+# nothing to do
 ##
-## #------ freeimage_src ------
-## # nothing to do
-## ##
 #------ cmake ------
 export CMAKEHOME=${INST_ROOT}/cmake-2.8.7
 exportp PATH ${CMAKEHOME}/bin
 ##
-## #------ cmake_src ------
-## # nothing to do
-## ##
+#------ cmake_src ------
+# nothing to do
+##
 #------ gl2ps ------
+if [ "${IN_PLACE_OCCT_PRODUCTS}" = "1" ] ; then
 export GL2PSHOME=${INST_ROOT}/gl2ps-1.3.5
 exportp PATH ${GL2PSHOME}/bin 
 exportp LD_LIBRARY_PATH ${GL2PSHOME}/lib
+fi
+##
+#------ gl2ps_src ------
+# nothing to do
 ##
-## #------ gl2ps_src ------
-## # nothing to do
-## ##
 #------ tbb ------
+if [ "${IN_PLACE_OCCT_PRODUCTS}" = "1" ] ; then
 export TBBHOME=${INST_ROOT}/tbb30_018oss
-exportp PATH ${TBBHOME}/bin/intel64/cc4.1.0_libc2.4_kernel2.6.16.21 
+exportp PATH ${TBBHOME}/bin/intel64/cc4.1.0_libc2.4_kernel2.6.16.21
 exportp LD_LIBRARY_PATH ${TBBHOME}/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21
+fi
+##
+#------ tbb_src ------
+# nothing to do
 ##
-## #------ tbb_src ------
-## # nothing to do
-## ##
 #------ OpenCascade ------
-export CASROOT=${INST_ROOT}/OCCT-6.5.3
+if [ "${IN_PLACE_OCCT_PRODUCTS}" = "1" ] ; then
+export CASROOT=${INST_ROOT}/OCCT-6.5.4
 exportp PATH ${CASROOT}/bin
 exportp LD_LIBRARY_PATH ${CASROOT}/lib:${CASROOT}/lin/lib
 # Variable for Foundation Classes : 
@@ -226,62 +248,64 @@ export CSF_MDTVTexturesDirectory=${CASROOT}/src/Textures
 # Activation of OCCT Kernel multithreading :
 export MMGT_REENTRANT=1
 ##
-## #------ OpenCascade_src ------
-## # nothing to do
-## ##
+#------ OpenCascade_src ------
+# nothing to do
+fi
+##
 #------ Qwt ------
 export QWTHOME=${INST_ROOT}/qwt-5.2.1
 exportp LD_LIBRARY_PATH ${QWTHOME}/lib 
 ##
-## #------ Qwt_src ------
-## # nothing to do
-## ##
+#------ Qwt_src ------
+# nothing to do
+##
 #------ OmniORB ------
 export OMNIORBDIR=${INST_ROOT}/omniORB-4.1.6
+export OMNIORB_DIR=${OMNIORBDIR}
 export OMNIORB_CONFIG=${OMNIORBDIR}/.omniORB.cfg
 exportp PYTHONPATH ${OMNIORBDIR}/lib:${OMNIORBDIR}/lib/python${PYTHON_VERSION}/site-packages
 exportp PATH $OMNIORBDIR/bin
 exportp LD_LIBRARY_PATH $OMNIORBDIR/lib 
 ##
-## #------ OmniORB_src ------
-## # nothing to do
-## ##
+#------ OmniORB_src ------
+# nothing to do
+##
 #------ Hdf5 ------
 export HDF5HOME=${INST_ROOT}/hdf5-1.8.8
 exportp PATH ${HDF5HOME}/bin
 exportp LD_LIBRARY_PATH ${HDF5HOME}/lib
 ##
-## #------ Hdf5_src ------
-## # nothing to do
-## ##
+#------ Hdf5_src ------
+# nothing to do
+##
 #------ cgnslib ------
 export CGNSHOME=${INST_ROOT}/cgnslib-3.1.3
 exportp PATH ${CGNSHOME}/bin
 exportp LD_LIBRARY_PATH ${CGNSHOME}/lib
 ##
-## #------ cgnslib_src ------
-## # nothing to do
-## ##
+#------ cgnslib_src ------
+# nothing to do
+##
 #------ Med ------
-export MED3HOME=${INST_ROOT}/med-3.0.5
+export MED3HOME=${INST_ROOT}/med-3.0.6
 exportp PATH ${MED3HOME}/bin
 exportp LD_LIBRARY_PATH ${MED3HOME}/lib
 ##
-## #------ Med_src ------
-## # nothing to do
-## ##
+#------ Med_src ------
+# nothing to do
+##
 #------ Metis ------ 
 export METISDIR=${INST_ROOT}/metis-4.0
 ##
-## #------ Metis_src ------
-## # nothing to do
-## ##
+#------ Metis_src ------
+# nothing to do
+##
 #------ Scotch ------ 
 export SCOTCHDIR=${INST_ROOT}/scotch-5.1.11
 ##
-## #------ Scotch_src ------
-## # nothing to do
-## ##
+#------ Scotch_src ------
+# nothing to do
+##
 #------ ParaView ------
 export PVHOME=${INST_ROOT}/ParaView-3.14.0
 exportp PATH ${PVHOME}/bin
@@ -290,95 +314,116 @@ exportp PYTHONPATH ${PVHOME}/lib/paraview-3.14:${PVHOME}/lib/paraview-3.14/site-
 export VTK_DIR=${PVHOME}/lib/paraview-3.14
 export PV_PLUGIN_PATH=${PVHOME}/lib/paraview-3.14
 ##
-## #------ ParaView_src ------
-## # nothing to do
-## ##
+#------ ParaView_src ------
+# nothing to do
+##
 #------ numpy ------
 exportp PYTHONPATH ${INST_ROOT}/numpy-1.5.1/lib/python${PYTHON_VERSION}/site-packages
 exportp PATH ${INST_ROOT}/numpy-1.5.1/bin
 exportp LD_LIBRARY_PATH ${INST_ROOT}/numpy-1.5.1/lib
 ##
-## #------ numpy_src ------
-## # nothing to do
-## ##
-#------ libBatch ------ 
-export LIBBATCH_ROOT_DIR=${INST_ROOT}/libBatch-1.5.0
-exportp LD_LIBRARY_PATH ${LIBBATCH_ROOT_DIR}/lib
-exportp PYTHONPATH ${LIBBATCH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages
-##
-## #------ libBatch_src ------
-## # nothing to do
-## ##
+#------ numpy_src ------
+# nothing to do
+##
 #------ expat ------
 export EXPAT_ROOT=${INST_ROOT}/expat-2.0.1
 exportp PATH ${EXPAT_ROOT}/bin
 exportp LD_LIBRARY_PATH ${EXPAT_ROOT}/lib
 ##
-## #------ expat_src ------
-## # nothing to do
-## ##
+#------ expat_src ------
+# nothing to do
+##
 #------ Graphviz ------
 export GRAPHVIZHOME=${INST_ROOT}/graphviz-2.28.0
 exportp PATH ${GRAPHVIZHOME}/bin
 exportp LD_LIBRARY_PATH ${GRAPHVIZHOME}/lib:${GRAPHVIZHOME}/lib/graphviz
 ##
-## #------ Graphviz_src ------
-## # nothing to do
-## ##
+#------ Graphviz_src ------
+# nothing to do
+##
 #------ Doxygen ------
 exportp PATH ${INST_ROOT}/doxygen-1.8.0/bin
 ##
-## #------ Doxygen_src ------
-## # nothing to do
-## ##
+#------ Doxygen_src ------
+# nothing to do
+##
 #------ docutils ------
 exportp PYTHONPATH ${INST_ROOT}/docutils-0.8.1/lib/python${PYTHON_VERSION}/site-packages
 exportp PATH ${INST_ROOT}/docutils-0.8.1/bin
 ##
-## #------ docutils_src ------
-## # nothing to do
-## ##
+#------ docutils_src ------
+# nothing to do
+##
 #------ Sphinx ------
 exportp PYTHONPATH ${INST_ROOT}/Sphinx-1.1.3/lib/python${PYTHON_VERSION}/site-packages
 exportp PATH ${INST_ROOT}/Sphinx-1.1.3/bin
 ##
-## #------ Sphinx_src ------
-## # nothing to do
-## ##
+#------ Sphinx_src ------
+# nothing to do
+##
+#------ libxml2 ------
+export LIBXML_DIR=${INST_ROOT}/libxml2-2.7.8
+exportp PATH ${LIBXML_DIR}/bin
+exportp LD_LIBRARY_PATH ${LIBXML_DIR}/lib
+##
+#------ libxml2_src ------
+# nothing to do
+##
 #------ netgen ------
+if [ "${IN_PLACE_OCCT_PRODUCTS}" = "1" ] ; then
 export NETGENHOME=${INST_ROOT}/netgen-4.9.13
 exportp LD_LIBRARY_PATH ${NETGENHOME}/lib
+fi
+##
+#------ netgen_src ------
+# nothing to do
 ##
-## #------ netgen_src ------
-## # nothing to do
-## ##
 #------ DISTENE ------
 export DISTENE_HOME=${INST_ROOT}/DISTENE
-export BLSURFHOME=${DISTENE_HOME}/Tools/BLSurf-3.1_64
-export HEXOTICHOME=${DISTENE_HOME}/Tools/Hexotic-V1.0_64
-exportp LD_LIBRARY_PATH ${BLSURFHOME}/lib 
-exportp PATH ${HEXOTICHOME}/bin:${DISTENE_HOME}/Tools/TetMesh-GHS3D4.1_64:${DISTENE_HOME}/Tools/TetMesh-GHS3D4.2_64
-##
-## #------ DISTENE_src ------
-## # nothing to do
-## ##
+export MESHGEMSHOME=${DISTENE_HOME}/MeshGems-1.0/Products
+exportp LD_LIBRARY_PATH ${MESHGEMSHOME}/lib/Linux_64
+exportp PATH ${MESHGEMSHOME}/bin/Linux_64
+export HEXOTIC_HOME=${DISTENE_HOME}/Hexotic-1.0
+exportp PATH ${HEXOTIC_HOME}/bin/Linux_64
+. ${DISTENE_HOME}/DLim/dlim8.var.sh
+##
+#------ DISTENE_src ------
+# nothing to do
+##
 #------ homard ------
-export homard_HOME=${INST_ROOT}/homard-10.4
+export homard_HOME=${INST_ROOT}/homard
 exportp PATH ${homard_HOME}/HOMARD_V10.4_64
 ##
-## #------ homard_src ------
-## # nothing to do
-## ##
-#------ libxml2 ------ 
-export LIBXML_DIR=${INST_ROOT}/libxml2-2.7.8
-exportp PATH ${LIBXML_DIR}/bin
-exportp LD_LIBRARY_PATH ${LIBXML_DIR}/lib
+#------ homard_src ------
+# nothing to do
 ##
-## #------ libxml2_src ------
-## # nothing to do
-## ##
+#==============================================================================
+#==============================================================================
+#==============================================================================
+
+export vx=""
+if [ -e KERNEL_SRC/configure.ac ] ; then
+    vx=`grep -e "^AC_INIT" KERNEL_SRC/configure.ac | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
+elif [ -e KERNEL_SRC/configure.in.base ] ; then
+    vx=`grep -e "^VERSION=" KERNEL_SRC/configure.in.base | awk -F= '{ if (NF>1) print $NF; }' | tr -d '[:space:]'`
+    if [ "$vx" == "" ] ; then
+       >vx=`grep -e "^AC_INIT" KERNEL_SRC/configure.in.base | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
+    fi
+elif [ -e KERNEL_SRC/CMakeLists.txt ] ; then
+    ver_maj=`cat KERNEL_SRC/CMakeLists.txt | grep SET\(VERSION_MAJOR | sed -e "s%[A-Z_() ]%%g"`
+    ver_min=`cat KERNEL_SRC/CMakeLists.txt | grep SET\(VERSION_MINOR | sed -e "s%[A-Z_() ]%%g"`
+    ver_maintenance=`cat KERNEL_SRC/CMakeLists.txt | grep SET\(VERSION_MAINTENANCE | sed -e "s%[A-Z_() ]%%g"`
+    vx="${ver_maj}.${ver_min}.${ver_maintenance}"
+fi
+if [ "$vx" != "" ] ; then
+    vx="_$vx"
+fi
+
+#echo vx ================== ${vx}
+#exit
+
 #------ KERNEL ------
-export KERNEL_ROOT_DIR=${INST_ROOT}/KERNEL_6.5.0
+export KERNEL_ROOT_DIR=${INST_ROOT}/KERNEL${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${KERNEL_ROOT_DIR}/bin/salome
@@ -388,10 +433,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ KERNEL_src ------
-export KERNEL_SRC_DIR=${INST_ROOT}/KERNEL_SRC_6.5.0
+export KERNEL_SRC_DIR=${INST_ROOT}/KERNEL_SRC
 ##
 #------ GUI ------
-export GUI_ROOT_DIR=${INST_ROOT}/GUI_6.5.0
+export GUI_ROOT_DIR=${INST_ROOT}/GUI${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${GUI_ROOT_DIR}/bin/salome
@@ -402,10 +447,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ GUI_src ------
-export GUI_SRC_DIR=${INST_ROOT}/GUI_SRC_6.5.0
+export GUI_SRC_DIR=${INST_ROOT}/GUI_SRC
 ##
 #------ GEOM ------
-export GEOM_ROOT_DIR=${INST_ROOT}/GEOM_6.5.0
+export GEOM_ROOT_DIR=${INST_ROOT}/GEOM${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${GEOM_ROOT_DIR}/bin/salome
@@ -415,10 +460,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ GEOM_src ------
-export GEOM_SRC_DIR=${INST_ROOT}/GEOM_SRC_6.5.0
+export GEOM_SRC_DIR=${INST_ROOT}/GEOM_SRC
 ##
 #------ MED ------
-export MED_ROOT_DIR=${INST_ROOT}/MED_6.5.0
+export MED_ROOT_DIR=${INST_ROOT}/MED${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${MED_ROOT_DIR}/bin/salome
@@ -429,10 +474,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ MED_src ------
-export MED_SRC_DIR=${INST_ROOT}/MED_SRC_6.5.0
+export MED_SRC_DIR=${INST_ROOT}/MED_SRC
 ##
 #------ SMESH ------
-export SMESH_ROOT_DIR=${INST_ROOT}/SMESH_6.5.0
+export SMESH_ROOT_DIR=${INST_ROOT}/SMESH${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${SMESH_ROOT_DIR}/bin/salome
@@ -442,10 +487,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ SMESH_src ------
-export SMESH_SRC_DIR=${INST_ROOT}/SMESH_SRC_6.5.0
+export SMESH_SRC_DIR=${INST_ROOT}/SMESH_SRC
 ##
 #------ VISU ------
-export VISU_ROOT_DIR=${INST_ROOT}/VISU_6.5.0
+export VISU_ROOT_DIR=${INST_ROOT}/VISU${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${VISU_ROOT_DIR}/bin/salome
@@ -455,10 +500,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ VISU_src ------
-export VISU_SRC_DIR=${INST_ROOT}/VISU_SRC_6.5.0
+export VISU_SRC_DIR=${INST_ROOT}/VISU_SRC
 ##
 #------ PARAVIS ------
-export PARAVIS_ROOT_DIR=${INST_ROOT}/PARAVIS_6.5.0
+export PARAVIS_ROOT_DIR=${INST_ROOT}/PARAVIS${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${PARAVIS_ROOT_DIR}/bin/salome
@@ -469,11 +514,11 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ PARAVIS_src ------
-export PARAVIS_SRC_DIR=${INST_ROOT}/PARAVIS_SRC_6.5.0
+export PARAVIS_SRC_DIR=${INST_ROOT}/PARAVIS_SRC
 export ACCEPT_PARAVIS_WARNINGS=1
 ##
 #------ HEXABLOCK ------
-export HEXABLOCK_ROOT_DIR=${INST_ROOT}/HEXABLOCK_6.5.0
+export HEXABLOCK_ROOT_DIR=${INST_ROOT}/HEXABLOCK${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${HEXABLOCK_ROOT_DIR}/bin/salome
@@ -483,10 +528,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ HEXABLOCK_src ------
-export HEXABLOCK_SRC_DIR=${INST_ROOT}/HEXABLOCK_SRC_6.5.0
+export HEXABLOCK_SRC_DIR=${INST_ROOT}/HEXABLOCK_SRC
 ##
 #------ HEXABLOCKPLUGIN ------
-export HEXABLOCKPLUGIN_ROOT_DIR=${INST_ROOT}/HEXABLOCKPLUGIN_6.5.0
+export HEXABLOCKPLUGIN_ROOT_DIR=${INST_ROOT}/HEXABLOCKPLUGIN${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp LD_LIBRARY_PATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome
@@ -495,10 +540,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ HEXABLOCKPLUGIN_src ------
-export HEXABLOCKPLUGIN_SRC_DIR=${INST_ROOT}/HEXABLOCKPLUGIN_SRC_6.5.0
+export HEXABLOCKPLUGIN_SRC_DIR=${INST_ROOT}/HEXABLOCKPLUGIN_SRC
 ##
 #------ NETGENPLUGIN ------
-export NETGENPLUGIN_ROOT_DIR=${INST_ROOT}/NETGENPLUGIN_6.5.0
+export NETGENPLUGIN_ROOT_DIR=${INST_ROOT}/NETGENPLUGIN${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp LD_LIBRARY_PATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome
@@ -507,10 +552,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ NETGENPLUGIN_src ------
-export NETGENPLUGIN_SRC_DIR=${INST_ROOT}/NETGENPLUGIN_SRC_6.5.0
+export NETGENPLUGIN_SRC_DIR=${INST_ROOT}/NETGENPLUGIN_SRC
 ##
 #------ GHS3DPLUGIN ------
-export GHS3DPLUGIN_ROOT_DIR=${INST_ROOT}/GHS3DPLUGIN_6.5.0
+export GHS3DPLUGIN_ROOT_DIR=${INST_ROOT}/GHS3DPLUGIN${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp LD_LIBRARY_PATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome
@@ -519,10 +564,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ GHS3DPLUGIN_src ------
-export GHS3DPLUGIN_SRC_DIR=${INST_ROOT}/GHS3DPLUGIN_SRC_6.5.0
+export GHS3DPLUGIN_SRC_DIR=${INST_ROOT}/GHS3DPLUGIN_SRC
 ##
 #------ GHS3DPRLPLUGIN ------
-export GHS3DPRLPLUGIN_ROOT_DIR=${INST_ROOT}/GHS3DPRLPLUGIN_6.5.0
+export GHS3DPRLPLUGIN_ROOT_DIR=${INST_ROOT}/GHS3DPRLPLUGIN${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome
@@ -532,10 +577,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ GHS3DPRLPLUGIN_src ------
-export GHS3DPRLPLUGIN_SRC_DIR=${INST_ROOT}/GHS3DPRLPLUGIN_SRC_6.5.0
+export GHS3DPRLPLUGIN_SRC_DIR=${INST_ROOT}/GHS3DPRLPLUGIN_SRC
 ##
 #------ BLSURFPLUGIN ------
-export BLSURFPLUGIN_ROOT_DIR=${INST_ROOT}/BLSURFPLUGIN_6.5.0
+export BLSURFPLUGIN_ROOT_DIR=${INST_ROOT}/BLSURFPLUGIN${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome
@@ -545,10 +590,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ BLSURFPLUGIN_src ------
-export BLSURFPLUGIN_SRC_DIR=${INST_ROOT}/BLSURFPLUGIN_SRC_6.5.0
+export BLSURFPLUGIN_SRC_DIR=${INST_ROOT}/BLSURFPLUGIN_SRC
 ##
 #------ HexoticPLUGIN ------
-export HexoticPLUGIN_ROOT_DIR=${INST_ROOT}/HexoticPLUGIN_6.5.0
+export HexoticPLUGIN_ROOT_DIR=${INST_ROOT}/HexoticPLUGIN${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome
@@ -558,10 +603,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ HexoticPLUGIN_src ------
-export HexoticPLUGIN_SRC_DIR=${INST_ROOT}/HexoticPLUGIN_SRC_6.5.0
+export HexoticPLUGIN_SRC_DIR=${INST_ROOT}/HexoticPLUGIN_SRC
 ##
 #------ COMPONENT ------
-export COMPONENT_ROOT_DIR=${INST_ROOT}/COMPONENT_6.5.0
+export COMPONENT_ROOT_DIR=${INST_ROOT}/COMPONENT${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${COMPONENT_ROOT_DIR}/bin/salome
@@ -571,10 +616,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ COMPONENT_src ------
-export COMPONENT_SRC_DIR=${INST_ROOT}/COMPONENT_SRC_6.5.0
+export COMPONENT_SRC_DIR=${INST_ROOT}/COMPONENT_SRC
 ##
 #------ PYCALCULATOR ------
-export PYCALCULATOR_ROOT_DIR=${INST_ROOT}/PYCALCULATOR_6.5.0
+export PYCALCULATOR_ROOT_DIR=${INST_ROOT}/PYCALCULATOR${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${PYCALCULATOR_ROOT_DIR}/bin/salome
@@ -584,10 +629,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ PYCALCULATOR_src ------
-export PYCALCULATOR_SRC_DIR=${INST_ROOT}/PYCALCULATOR_SRC_6.5.0
+export PYCALCULATOR_SRC_DIR=${INST_ROOT}/PYCALCULATOR_SRC
 ##
 #------ CALCULATOR ------
-export CALCULATOR_ROOT_DIR=${INST_ROOT}/CALCULATOR_6.5.0
+export CALCULATOR_ROOT_DIR=${INST_ROOT}/CALCULATOR${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${CALCULATOR_ROOT_DIR}/bin/salome
@@ -597,10 +642,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ CALCULATOR_src ------
-export CALCULATOR_SRC_DIR=${INST_ROOT}/CALCULATOR_SRC_6.5.0
+export CALCULATOR_SRC_DIR=${INST_ROOT}/CALCULATOR_SRC
 ##
 #------ HELLO ------
-export HELLO_ROOT_DIR=${INST_ROOT}/HELLO_6.5.0
+export HELLO_ROOT_DIR=${INST_ROOT}/HELLO${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${HELLO_ROOT_DIR}/bin/salome
@@ -610,10 +655,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ HELLO_src ------
-export HELLO_SRC_DIR=${INST_ROOT}/HELLO_SRC_6.5.0
+export HELLO_SRC_DIR=${INST_ROOT}/HELLO_SRC
 ##
 #------ PYHELLO ------
-export PYHELLO_ROOT_DIR=${INST_ROOT}/PYHELLO_6.5.0
+export PYHELLO_ROOT_DIR=${INST_ROOT}/PYHELLO${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${PYHELLO_ROOT_DIR}/bin/salome
@@ -622,10 +667,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ PYHELLO_src ------
-export PYHELLO_SRC_DIR=${INST_ROOT}/PYHELLO_SRC_6.5.0
+export PYHELLO_SRC_DIR=${INST_ROOT}/PYHELLO_SRC
 ##
 #------ ATOMGEN ------
-export ATOMGEN_ROOT_DIR=${INST_ROOT}/ATOMGEN_6.5.0
+export ATOMGEN_ROOT_DIR=${INST_ROOT}/ATOMGEN${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${ATOMGEN_ROOT_DIR}/bin/salome
@@ -635,10 +680,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ ATOMGEN_src ------
-export ATOMGEN_SRC_DIR=${INST_ROOT}/ATOMGEN_SRC_6.5.0
+export ATOMGEN_SRC_DIR=${INST_ROOT}/ATOMGEN_SRC
 ##
 #------ ATOMSOLV ------
-export ATOMSOLV_ROOT_DIR=${INST_ROOT}/ATOMSOLV_6.5.0
+export ATOMSOLV_ROOT_DIR=${INST_ROOT}/ATOMSOLV${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${ATOMSOLV_ROOT_DIR}/bin/salome
@@ -648,10 +693,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ ATOMSOLV_src ------
-export ATOMSOLV_SRC_DIR=${INST_ROOT}/ATOMSOLV_SRC_6.5.0
+export ATOMSOLV_SRC_DIR=${INST_ROOT}/ATOMSOLV_SRC
 ##
 #------ ATOMIC ------
-export ATOMIC_ROOT_DIR=${INST_ROOT}/ATOMIC_6.5.0
+export ATOMIC_ROOT_DIR=${INST_ROOT}/ATOMIC${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${ATOMIC_ROOT_DIR}/bin/salome
@@ -661,10 +706,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ ATOMIC_src ------
-export ATOMIC_SRC_DIR=${INST_ROOT}/ATOMIC_SRC_6.5.0
+export ATOMIC_SRC_DIR=${INST_ROOT}/ATOMIC_SRC
 ##
 #------ LIGHT ------
-export LIGHT_ROOT_DIR=${INST_ROOT}/LIGHT_6.5.0
+export LIGHT_ROOT_DIR=${INST_ROOT}/LIGHT${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp LD_LIBRARY_PATH ${LIGHT_ROOT_DIR}/lib/salome
@@ -672,10 +717,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ LIGHT_src ------
-export LIGHT_SRC_DIR=${INST_ROOT}/LIGHT_SRC_6.5.0
+export LIGHT_SRC_DIR=${INST_ROOT}/LIGHT_SRC
 ##
 #------ PYLIGHT ------
-export PYLIGHT_ROOT_DIR=${INST_ROOT}/PYLIGHT_6.5.0
+export PYLIGHT_ROOT_DIR=${INST_ROOT}/PYLIGHT${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${PYLIGHT_ROOT_DIR}/bin/salome
@@ -684,10 +729,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ PYLIGHT_src ------
-export PYLIGHT_SRC_DIR=${INST_ROOT}/PYLIGHT_SRC_6.5.0
+export PYLIGHT_SRC_DIR=${INST_ROOT}/PYLIGHT_SRC
 ##
 #------ RANDOMIZER ------
-export RANDOMIZER_ROOT_DIR=${INST_ROOT}/RANDOMIZER_6.5.0
+export RANDOMIZER_ROOT_DIR=${INST_ROOT}/RANDOMIZER${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${RANDOMIZER_ROOT_DIR}/bin/salome
@@ -697,10 +742,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ RANDOMIZER_src ------
-export RANDOMIZER_SRC_DIR=${INST_ROOT}/RANDOMIZER_SRC_6.5.0
+export RANDOMIZER_SRC_DIR=${INST_ROOT}/RANDOMIZER_SRC
 ##
 #------ SIERPINSKY ------
-export SIERPINSKY_ROOT_DIR=${INST_ROOT}/SIERPINSKY_6.5.0
+export SIERPINSKY_ROOT_DIR=${INST_ROOT}/SIERPINSKY${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${SIERPINSKY_ROOT_DIR}/bin/salome
@@ -710,10 +755,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ SIERPINSKY_src ------
-export SIERPINSKY_SRC_DIR=${INST_ROOT}/SIERPINSKY_SRC_6.5.0
+export SIERPINSKY_SRC_DIR=${INST_ROOT}/SIERPINSKY_SRC
 ##
 #------ YACS ------
-export YACS_ROOT_DIR=${INST_ROOT}/YACS_6.5.0
+export YACS_ROOT_DIR=${INST_ROOT}/YACS${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${YACS_ROOT_DIR}/bin/salome
@@ -723,10 +768,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ YACS_src ------
-export YACS_SRC_DIR=${INST_ROOT}/YACS_SRC_6.5.0
+export YACS_SRC_DIR=${INST_ROOT}/YACS_SRC
 ##
 #------ YACSGEN ------
-export YACSGEN_ROOT_DIR=${INST_ROOT}/YACSGEN_6.5.0
+export YACSGEN_ROOT_DIR=${INST_ROOT}/YACSGEN${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PYTHONPATH ${YACSGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages
@@ -734,10 +779,10 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ YACSGEN_src ------
-export YACSGEN_SRC_DIR=${INST_ROOT}/YACSGEN_SRC_6.5.0
+export YACSGEN_SRC_DIR=${INST_ROOT}/YACSGEN_SRC
 ##
 #------ JOBMANAGER ------
-export JOBMANAGER_ROOT_DIR=${INST_ROOT}/JOBMANAGER_6.5.0
+export JOBMANAGER_ROOT_DIR=${INST_ROOT}/JOBMANAGER${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${JOBMANAGER_ROOT_DIR}/bin/salome
@@ -747,15 +792,15 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ JOBMANAGER_src ------
-export JOBMANAGER_SRC_DIR=${INST_ROOT}/JOBMANAGER_SRC_6.5.0
+export JOBMANAGER_SRC_DIR=${INST_ROOT}/JOBMANAGER_SRC
 ##
 #------ SAMPLES_src ------
-export DATA_DIR=${INST_ROOT}/SAMPLES_SRC_6.5.0
+export DATA_DIR=${INST_ROOT}/SAMPLES_SRC
 ##
 #------ TUTORIAL_src ------
 ##
 #------ HOMARD ------
-export HOMARD_ROOT_DIR=${INST_ROOT}/HOMARD_6.5.0
+export HOMARD_ROOT_DIR=${INST_ROOT}/HOMARD${vx}
 if [ -n "${ENV_FOR_LAUNCH}" ] ; then
   if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
     exportp PATH ${HOMARD_ROOT_DIR}/bin/salome
@@ -765,7 +810,7 @@ if [ -n "${ENV_FOR_LAUNCH}" ] ; then
 fi
 ##
 #------ HOMARD_src ------
-export HOMARD_SRC_DIR=${INST_ROOT}/HOMARD_SRC_6.5.0
+export HOMARD_SRC_DIR=${INST_ROOT}/HOMARD_SRC
 ##
 #------ xdata ------ 
 export XDATAROOT=${INST_ROOT}/xdata-0.9.3
@@ -776,7 +821,7 @@ exportp PYTHONPATH ${XDATAROOT}/lib/python${PYTHON_VERSION}/site-packages/xdata
 # nothing to do
 ##
 #------ HXX2SALOME ------
-export HXX2SALOME_ROOT_DIR=${INST_ROOT}/HXX2SALOME_6.5.0/bin
+export HXX2SALOME_ROOT_DIR=${INST_ROOT}/HXX2SALOME${vx}/bin
 exportp PATH ${HXX2SALOME_ROOT_DIR}
 ##
 #------ HXX2SALOME_src ------