Salome HOME
-
authorbri <bri@opencascade.com>
Mon, 10 Feb 2014 14:06:14 +0000 (18:06 +0400)
committerbri <bri@opencascade.com>
Mon, 10 Feb 2014 14:06:14 +0000 (18:06 +0400)
scripts/README
scripts/build.csh [deleted file]
scripts/build.sh [deleted file]
scripts/env_build.csh [deleted file]
scripts/env_build.sh [deleted file]
scripts/env_products.csh [deleted file]
scripts/env_products.sh [deleted file]

index 9fdc9f0c961ea6cc80db0bb493ba39e47cec692d..979b32bb858b2fca9def6679ba3ac9ab0b8784b1 100644 (file)
@@ -4,7 +4,7 @@ How prepare runnable SALOME-SIMAN code
 
 2. Take from CVS SALOME-SIMAN code for branch "BR_siman_phase1" based on SALOME 6.5.0
 
-starting from SIMAN repository like :
+Start from SIMAN repository like :
 cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SIMAN checkout SIMANIO_SRC
 
 Move the required product wso2-wsf-cpp-2.1.0 and all scripts to SALOME root directory
diff --git a/scripts/build.csh b/scripts/build.csh
deleted file mode 100644 (file)
index 8eb0a32..0000000
+++ /dev/null
@@ -1,463 +0,0 @@
-#!/bin/csh -f
-
-####################################################################################
-#  File      : build.csh
-#  Created   : Thu Jan 27 09:50:55 2005
-#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
-#  Project   : SALOME
-#  Module    : Installation Wizard
-#  Copyright : 2002-2012 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-#  This script can be used to build and install SALOME modules from sources.
-#  Try build.csh -h for more details about usage.
-#
-####################################################################################
-
-set is_build_configure=0
-set is_configure=0
-set inst_with_gui=1
-set is_delete=0
-set verbose_level=2
-set params=""
-set modules=(KERNEL GUI GEOM MED SMESH VISU PARAVIS YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT PYLIGHT SIERPINSKY RANDOMIZER HEXABLOCK HEXABLOCKPLUGIN ATOMIC ATOMGEN ATOMSOLV HOMARD JOBMANAGER)
-set optim=""
-set is_install=1
-set is_help=0
-set is_tui=0
-set prefix=""
-set def_install_dir="/INSTALL"
-set b_params=""
-
-#########################################################
-# parse parameters
-#########################################################
-while ( ${%1} > 0 )
-    if ( "$1" == "-b" ) then
-       set is_build_configure=1
-       set is_configure=1
-    else if ( "$1" == "-c" ) then
-       set is_configure=1
-    else if ( "$1" == "-w" ) then
-       set inst_with_gui=0
-    else if ( "$1" == "-d" ) then
-       set is_delete=1
-    else if ( "$1" == "-o" ) then
-       set optim="--enable-production=yes --disable-debug"
-    else if ( "$1" == "-v" ) then
-       shift
-       set verbose_level=$1
-    else if ( "$1" == "-p" ) then
-       shift
-       set is_install=1
-       set prefix=$1
-    else if ( "$1" == "-h" ) then
-       set is_help=1
-    else if ( "$1" == "-t" ) then
-       set is_tui=1
-    else
-       set ckt=`echo ${modules} | grep -E "\<$1\>"`
-       if ( "$ckt" != "" ) then
-           set params="$params $1"
-       else
-           set b_params="$b_params $1"
-           echo "\!\!\! Warning \!\!\! Unknown module: $1."
-       endif
-    endif
-    shift
-end
-
-#########################################################
-# if -h option is given - print help info and exit 
-#########################################################
-if ( $is_help == 1 ) then
-echo ""
-echo ""
-echo "Description:"
-echo "            Builds given SALOME modules by performing make and make install commands"
-echo ""
-echo "Usage:"
-echo "            build.csh [ <option> ] ... [ <module> [ <module> ... ] ]"
-echo ""
-echo "<module>    Modules to build, separated by space(s)."
-echo "            If no modules are given - all SALOME modules are assumed."
-echo "            Note, that modules given in command lines are automatically sorted in such order"
-echo "            to support correct modules dependencies."
-echo ""
-echo "Options:"
-echo "-b          Perform build_configure command for all given modules."
-echo "            This option forces configure (-c) key to be set. Default is off."
-echo ""
-echo "-c          Perform configure command for all given modules. Default is off."
-echo ""
-echo "-w          Add --without-gui key to build_configure and configure commands"
-echo "            to build SALOME module sources without GUI."
-echo "            By default sources are built with GUI."
-echo ""
-echo "-d          Delete build directories before calling configure, to force full rebuild"
-echo "            and reinstall of the module."
-echo "            Use this option carefully."
-echo ""
-echo "-o          Build sources in optimized mode. Default is off that means debug mode."
-echo "            Use this option together with -c or -b."
-echo "            This option can require -d option to be set (to ensure that previously"
-echo "            created build directories are removed to enforce rebuild in optimized mode)."
-echo ""
-echo "-t          Performs make dev_docs step to build TUI documentation for those modules"
-echo "            which support this. Default is off."
-echo ""
-echo "-p <prefix> Define the directory where to install modules after compilation."
-echo "            By default the directory where compilation is performed is used."
-echo ""
-echo "-v <level>  Verbose level (0-2, default 2): print information on build status:"
-echo "            0: only 'make' errors"
-echo "            1: 0 + compiler and other errors (including build_configure, configure)"
-echo "            2: 1 + compiler and other warnings "
-echo ""
-echo "-h          Prints this help information."
-echo ""
-echo "Note:       If no keys are given script just performs make step."
-echo ""
-echo "Example:"
-echo "            ./build.csh -o -p /home/user/salome -b KERNEL MED GEOM"
-echo ""
-echo "            This will make KERNEL, GEOM and MED modules: build_configure, configure, make"
-echo "            and install procedures will be performed for all specified modules."
-echo "            The modules will be built in the optimized mode"
-echo ""
-exit
-endif
-
-#########################################################
-# sort modules in proper order according to the dependancies
-#########################################################
-if ( "${params}" != "" ) then
-    set xparams=""
-    foreach module (${modules})
-       set ckt=`echo ${params} | grep -E "\<${module}\>"`
-       if ( "$ckt" != "" ) then
-           set xparams="$xparams $module"
-       endif
-    end
-    set modules=($xparams $b_params)
-else if ( "${b_params}" != "" ) then
-    set modules=($b_params)
-endif
-
-echo ">>> The following modules will be built:"
-echo $modules
-
-#########################################################
-# set environment
-#########################################################
-set env_script=`dirname $0`/env_build.csh
-if ( ! -e $env_script ) then
-    set env_script=`dirname $0`/env_products.csh
-endif
-if ( ! -e $env_script ) then
-    set env_script=`dirname $0`/env.sh
-endif
-if ( -e $env_script ) then
-    echo ">>> Setting environment"
-    source $env_script
-else
-    echo "\!\!\! Warning \!\!\! Environment is not set."
-    echo "No environment file (env_build.sh, env_products.sh, env.sh) is found."
-    echo "Proceed with the current environment."
-endif
-
-set BUILD_DIR=${PWD}
-set LOG_DIR=${BUILD_DIR}/LOGS
-
-#########################################################
-# define installation prefix
-#########################################################
-if ( "$prefix" == "" ) then
-    echo "\!\!\! Warning \!\!\! Installation directory is not set."
-    echo "All the modules will be installed to the ${BUILD_DIR}${def_install_dir}"
-else
-    set is_absolute=`echo $prefix | grep -e "^/"`
-    if ( "$is_absolute" == "" ) then
-       set prefix=${BUILD_DIR}/$prefix
-       echo "\!\!\! Warning \!\!\! Relative prefix is used."
-       echo "All the modules will be installed to the $prefix"
-    endif
-endif
-
-#########################################################
-# create log directory
-#########################################################
-if ( ! -e ${LOG_DIR} ) then
-    mkdir -p ${LOG_DIR}
-endif
-
-echo "==========================================================================="
-echo "Starting SALOME build at `date`"
-echo "==========================================================================="
-
-#########################################################
-# loop for all given modules
-#########################################################
-foreach module (${modules})
-    echo ">>> Processing ${module} module"
-
-    set module_src=`printenv ${module}_SRC_DIR`
-    set module_build=${BUILD_DIR}/${module}_BUILD
-
-    if ( ${module_src} != "" ) then
-       cd ${BUILD_DIR}
-       #########################################################
-       # check if sources directory exists
-       #########################################################
-       if ( ! -e ${module_src} ) then
-           echo "\!\!\! Error \!\!\! Can't find sources directory: ${module_src} does not exist."
-           continue
-       endif
-       #########################################################
-       # check if configure script exists
-       #########################################################
-       set cfg_exist=0
-       if ( -e ${module_src}/configure ) then
-           set cfg_exist=1
-       endif
-       #########################################################
-       # perform build_configure if -b flag is given or if 
-       # configure script does not exist (first compilation?)
-       #########################################################
-       if ( $is_build_configure == 1 || $cfg_exist == 0 ) then
-           echo "... Performing build_configure"
-           #########################################################
-           # check if build_configure script exists
-           #########################################################
-           if ( ! -e ${module_src}/build_configure && "${module}" != "PARAVIS" ) then
-               echo "\!\!\! Warning \!\!\! Can not find build_configure script in ${module_src}."
-           else
-               if ( "${module}" == "PARAVIS" ) then
-                   echo "\!\!\! Warning \!\!\! build_configure step is not executed for ${module}."
-               else
-                   #########################################################
-                   # call build_configure
-                   #########################################################
-                   if (! ($?BUILDCONF_OPTS) ) then
-                       set mybuildconf_keys=""
-                   else
-                       set mybuildconf_keys="${BUILDCONF_OPTS}"
-                   endif    
-                   if ( $inst_with_gui == 0 ) then
-                       set mybuildconf_keys="${mybuildconf_keys} --without-gui"
-                   endif
-                   cd ${module_src}
-                   ./build_configure ${mybuildconf_keys} >& ${LOG_DIR}/build_configure_${module}.log
-                   #########################################################
-                   # echo possible errors
-                   #########################################################
-                   if ( $verbose_level > 0 ) then
-                       cat ${LOG_DIR}/build_configure_${module}.log | grep -E "(failed|: error:)"
-                   endif
-               endif
-           endif
-       endif
-       #########################################################
-       # deleting build directory if -d flag is given
-       #########################################################
-       if ( -e ${module_build} && $is_delete == 1 ) then
-           echo "... Removing ${module_build}"
-           chmod -R +w ${module_build} && rm -rf ${module_build} >& /dev/null
-           if ( "$?" != "0" ) then
-               echo "\!\!\! Warning \!\!\! Cannot remove build directory ${module_build}. Permission denied."
-           endif
-       endif
-       #########################################################
-       # creating build directory if it does not exist
-       #########################################################
-       if ( ! -e ${module_build} ) then
-           mkdir -p ${module_build} >& /dev/null
-           if ( "$?" != "0" ) then
-               echo "\!\!\! Error \!\!\! Cannot create build directory ${module_build}. Permission denied."
-               continue
-           endif
-       endif
-       cd ${module_build}
-       #########################################################
-       # check if top Makefile exists in build directory, i.e. 
-       # is it necessary to run configure script
-       #########################################################
-       set mkfile_exist=0
-       if ( -e ${module_build}/Makefile ) then
-           set mkfile_exist=1
-       endif
-       #########################################################
-       # check if configure options are changed from the 
-       # previous launch
-       #########################################################
-       set opts_changed=0
-       #########################################################
-       # define installation directory (by using module's version
-       # number); default is a build directory
-       #########################################################
-       set vx=""
-       if ( -e ${module_src}/configure.ac ) then
-           set vx=`grep -e "^AC_INIT" ${module_src}/configure.ac | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
-       else if ( -e ${module_src}/configure.in.base ) then
-           set vx=`grep -e "^VERSION=" ${module_src}/configure.in.base | awk -F= '{ if (NF>1) print $NF; }' | tr -d '[:space:]'`
-           if ( "$vx" == "" ) then
-               set vx=`grep -e "^AC_INIT" ${module_src}/configure.in.base | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
-           endif
-       else if ( -e ${module_src}/CMakeLists.txt ) then
-           set ver_maj=`cat ${module_src}/CMakeLists.txt | grep SET\(VERSION_MAJOR | sed -e "s%[A-Z_() ]%%g"`
-           set ver_min=`cat ${module_src}/CMakeLists.txt | grep SET\(VERSION_MINOR | sed -e "s%[A-Z_() ]%%g"`
-           set ver_maintenance=`cat ${module_src}/CMakeLists.txt | grep SET\(VERSION_MAINTENANCE | sed -e "s%[A-Z_() ]%%g"`
-           set vx="${ver_maj}.${ver_min}.${ver_maintenance}"
-       endif
-       if ( "$vx" != "" ) then
-           set vx="_$vx"
-       endif
-       if ( "$prefix" == "" ) then
-           set px=${BUILD_DIR}${def_install_dir}/${module}${vx}
-       else
-           set px=${prefix}/${module}${vx}
-       endif
-       #########################################################
-       # perform configure if -c flag is given or if 
-       # Makefile does not exist (first compilation?)
-       #########################################################
-       if ( $is_configure == 1 || $mkfile_exist == 0 || $opts_changed == 1 ) then
-           echo "... Performing configure"
-           #########################################################
-           # check if configure script exists
-           #########################################################
-           if ( ! -e ${module_src}/configure  && "${module}" != "PARAVIS" ) then
-               echo "\!\!\! Warning \!\!\! Can not find configure script in ${module_src}."
-           else
-               if (! ($?BUILDCONF_OPTS) ) then
-                   set myconf_keys=""
-               else
-                   set myconf_keys="${CONF_OPTS}"
-               endif
-               if ( $inst_with_gui == 0 ) then
-                   set myconf_keys="${myconf_keys} --without-gui"
-               endif
-               if ( "${module}" == "MED" && ($?METISDIR) && ($?SCOTCHDIR) ) then
-                   set myconf_keys="${myconf_keys} --enable-splitter=yes --with-metis=${METISDIR} --with-scotch=${SCOTCHDIR}"
-               endif
-               if ( "${module}" == "NETGENPLUGIN" && ($?NETGENHOME) ) then
-                   set myconf_keys="${myconf_keys} --with-netgen=${NETGENHOME}"
-               endif
-               
-               if ( "${module}" == "PARAVIS" )  then
-                   cd ${module_build}; cmake ${module_src} -DCMAKE_INSTALL_PREFIX=$px >& ${LOG_DIR}/configure_${module}.log
-               else
-                   ${module_src}/configure --prefix=$px ${optim} ${myconf_keys} >& ${LOG_DIR}/configure_${module}.log
-               endif
-
-               #########################################################
-               # echo possible errors
-               #########################################################
-               if ( $verbose_level > 0 ) then
-                   cat ${LOG_DIR}/configure_${module}.log | grep ": error:"
-               endif
-               if ( $verbose_level > 1 ) then
-                   cat ${LOG_DIR}/configure_${module}.log | grep ": WARNING:"
-               endif
-           endif
-       endif
-       #########################################################
-       # perform make
-       #########################################################
-       echo "... Performing make"
-       #########################################################
-       # first clear dependencies
-       #########################################################
-       find . -name ".dep*" -type f -exec rm -f {} \; >& /dev/null
-        #########################################################
-        # then make
-        #########################################################
-       if ( "${module}" == "PARAVIS" )  then
-           if ( ($?VTK_AUTOLOAD_PATH) ) then
-               setenv VTK_AUTOLOAD_PATH_BACKUP ${VTK_AUTOLOAD_PATH}
-               unsetenv VTK_AUTOLOAD_PATH
-           endif
-       endif
-       make >& ${LOG_DIR}/make_${module}.log
-       set sts=$status
-       if ( "${module}" == "PARAVIS" )  then
-           if ( ($?VTK_AUTOLOAD_PATH_BACKUP) ) then
-               setenv VTK_AUTOLOAD_PATH ${VTK_AUTOLOAD_PATH_BACKUP}
-           endif
-       endif
-       #########################################################
-       # if make step is successful set the ${module}_ROOT_DIR
-       # environment variable
-       #########################################################
-       #if ( $sts == 0 ) then
-       #    setenv ${module}_ROOT_DIR ${module_build}
-       #endif
-       #########################################################
-       # print make errors
-       #########################################################
-       cat ${LOG_DIR}/make_${module}.log | grep -Ei '[*][*][*].*error'
-       #########################################################
-       # print compiler errors and warnings
-       # Note: here awk is used to concatenate together several lines of single
-       #       error or warning message produced by stupid gnu compiler
-       # Actually, instead of that we could use 'fmessage length=n' option of g++...
-       #########################################################
-       if ( $verbose_level > 0 ) then
-           ###cat ${LOG_DIR}/make_${module}.log | grep ": error"
-           cat ${LOG_DIR}/make_${module}.log | awk 'substr($0,0,1)!=" " {print ""} {print $0} END {print ""}' | grep "${module_src}/[A-Za-z_0-9./]*:" | sed s@"^${module_src}/src/"@@
-       endif
-       if ( $verbose_level > 1 ) then
-           cat ${LOG_DIR}/make_${module}.log | awk 'substr($0,0,1)!=" " {print ""} {print $0} END {print ""}' | grep -E ": warning|* Warning" | sed s@"^${module_src}/src/"@@
-       endif
-       #########################################################
-       # perform make dev_docs step if -t flag is given
-       #########################################################
-       if ( $is_tui == 1 && $sts == 0 && -d ${module_build}/doc ) then
-           cd ${module_build}/doc
-           set dd=`cat Makefile | grep -E "dev_docs[[:space:]]*:"`
-           if ( "$dd" != "" ) then
-               echo "... Performing make dev_docs"
-               make dev_docs >& ${LOG_DIR}/make_dev_docs_${module}.log
-               cat ${LOG_DIR}/make_dev_docs_${module}.log | grep '[*][*][*]'
-           endif
-       endif
-       cd ${module_build}
-       #########################################################
-       # perform make if -i or -p flags are given
-       #########################################################
-       if ( $is_install == 1 && $sts == 0 || "${module}" == "KERNEL" ) then
-           #########################################################
-           # deleting build directory if -d flag is given
-           #########################################################
-           if ( -e $px && $is_delete == 1 ) then
-               echo "... Removing $px"
-               rm -rf $px >& /dev/null
-               if ( "$?" != "0" ) then
-                   echo "\!\!\! Warning \!\!\! Cannot remove install directory ${px}. Permission denied."
-               endif
-           endif
-           echo "... Performing make install"
-           make install >& ${LOG_DIR}/make_install_${module}.log
-           set sts=$status
-           #########################################################
-           # if make install step is successful set the 
-           # ${module}_ROOT_DIR environment variable
-           #########################################################
-           if ( $sts == 0 ) then
-               setenv ${module}_ROOT_DIR $px
-           endif
-       endif
-       echo ">>> Finished ${module} module"
-    else
-       echo "\!\!\! Error \!\!\! Can't find module sources. ${module}_SRC_DIR environment variable is not set."
-    endif
-end
-#########################################################
-# finalize
-#########################################################
-cd ${BUILD_DIR}
-
-echo "==========================================================================="
-echo "SALOME build finished at `date`"
-echo "==========================================================================="
diff --git a/scripts/build.sh b/scripts/build.sh
deleted file mode 100644 (file)
index 07a96c9..0000000
+++ /dev/null
@@ -1,475 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : build.sh
-#  Created   : Thu Jan 27 09:50:55 2005
-#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
-#  Project   : SALOME
-#  Module    : Installation Wizard
-#  Copyright : 2002-2012 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-#  This script can be used to build and install SALOME modules from sources.
-#  Try build.sh -h for more details about usage.
-#
-####################################################################################
-
-###############################################################
-# Prints usage information and exits
-###############################################################
-usage(){
-    echo ""
-    echo "Description:"
-    echo "            Builds given SALOME modules by performing make and "
-    echo "            make install commands"
-    echo ""
-    echo "Usage:"
-    echo "            build.sh [ <option> ] ... [ <module> [ <module> ... ] ]"
-    echo ""
-    echo "<module>    Modules to build, separated by space(s)."
-    echo "            If no modules are given - all SALOME modules are assumed."
-    echo "            Note, that modules given in command lines are automatically"
-    echo "            sorted in such order to support correct modules dependencies."
-    echo ""
-    echo "Options:"
-    echo "-b          Perform build_configure command for all given modules."
-    echo "            This option forces configure (-c) key to be set. Default is off."
-    echo ""
-    echo "-c          Perform configure command for all given modules. Default is off."
-    echo ""
-    echo "-w          Add --without-gui key to build_configure and configure commands"
-    echo "            to build SALOME module sources without GUI."
-    echo "            By default sources are built with GUI."
-    echo ""
-    echo "-d          Delete build directories before calling configure, to force full"
-    echo "            rebuild and reinstall of the module."
-    echo "            Use this option carefully."
-    echo ""
-    echo "-o          Build sources in optimized mode. Default is off that means"
-    echo "            debug mode."
-    echo "            Use this option together with -c or -b."
-    echo "            This option can require -d option to be set (to ensure that"
-    echo "            previously created build directories are removed to enforce"
-    echo "            rebuild in optimized mode)."
-    echo ""
-    echo "-t          Performs make dev_docs step to build TUI documentation for those"
-    echo "            modules which support this. Default is off."
-    echo ""
-    echo "-p <prefix> Define the directory where to install modules after compilation."
-    echo "            By default the directory where compilation is performed is used."
-    echo ""
-    echo "-v <level>  Verbose level (0-2, default 2): print information on build status:"
-    echo "            0: only 'make' errors"
-    echo "            1: 0 + compiler and other errors (build_configure, configure)"
-    echo "            2: 1 + compiler and other warnings "
-    echo ""
-    echo "-h          Prints this help information."
-    echo ""
-    echo "Note:       If no keys are given script just performs make step."
-    echo ""
-    echo "Example:"
-    echo "            ./build.csh -o -p /home/user/salome -b KERNEL MED GEOM"
-    echo ""
-    echo "            This will make KERNEL, GEOM and MED modules: build_configure,"
-    echo "            configure, make and install procedures will be performed for all"
-    echo "            specified modules. The modules will be built in the optimized mode."
-    echo ""
-    exit 1
-}
-
-is_build_configure=0
-is_configure=0
-inst_with_gui=1
-is_delete=0
-verbose_level=2
-params=""
-#modules="KERNEL GUI GEOM MED SMESH VISU PARAVIS YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT PYLIGHT SIERPINSKY RANDOMIZER HEXABLOCK HEXABLOCKPLUGIN ATOMIC ATOMGEN ATOMSOLV HOMARD JOBMANAGER"
-modules="KERNEL GUI GEOM MED SMESH VISU PARAVIS YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN PYHELLO"
-optim=""
-is_install=1
-is_tui=0
-prefix=""
-def_install_dir="/INSTALL"
-
-#########################################################
-# parse parameters
-#########################################################
-while getopts ":hbcwdotv:p:" option ; do
-    case $option in
-        h ) usage ;;
-        b ) is_build_configure=1 ; is_configure=1 ;;
-        c ) is_configure=1 ;;
-        w ) inst_with_gui=0 ;;
-        d ) is_delete=1 ;;
-        o ) optim="--enable-production=yes --disable-debug" ;;
-       t ) is_tui=1 ;;
-        v ) verbose_level=$OPTARG ;;
-        p ) is_install=1 ; prefix=$OPTARG ;;
-        ? ) usage ;;
-    esac
-done
-# shift to have the good number of other args
-shift $((OPTIND - 1))
-
-b_params=""
-
-for arg in $@ ; do
-    known=0
-    for m in $modules ; do
-       if [ "$m" == "$arg" ] ; then known=1 ; break ; fi
-    done
-    if [ $known -eq 0 ] ; then
-       echo
-       echo '!!! Warning !!! Unknown module: '$arg'.'
-       b_params="$b_params $arg"
-    else
-       params="$params $arg"
-    fi
-done
-
-#########################################################
-# sort modules in proper order according to the dependancies
-#########################################################
-if [ "${params}" != "" ] ; then
-    xparams=""
-    for module in ${modules} ; do
-       found=0
-       for p in $params ; do
-           if [ "$p" == "$module" ] ; then found=1 ; break ; fi
-       done
-       if [ $found -eq 1 ] ; then 
-           xparams="$xparams $module"
-       fi
-    done
-    modules="$xparams $b_params"
-elif [ "${b_params}" != "" ] ; then
-    modules="$b_params"
-fi
-
-echo
-echo ">>> The following modules will be built:"
-echo $modules
-echo
-
-#########################################################
-# set environment
-#########################################################
-env_script=`dirname $0`/env_build.sh
-if [ ! -e $env_script ] ; then
-    env_script=`dirname $0`/env_products.sh
-fi
-if [ ! -e $env_script ] ; then
-    env_script=`dirname $0`/env.sh
-fi
-if [ -e $env_script ] ; then
-    echo
-    echo ">>> Setting environment"
-    source $env_script
-else
-    echo
-    echo '!!! Warning !!! Environment is not set.'
-    echo 'No environment file (env_build.sh, env_products.sh, env.sh) is found.'
-    echo 'Proceed with the current environment.'
-fi
-
-BUILD_DIR=${PWD}
-LOG_DIR=${BUILD_DIR}/LOGS
-
-#########################################################
-# define installation prefix
-#########################################################
-if [ "$prefix" == "" ] ; then
-    echo
-    echo '!!! Warning !!! Installation directory is not set.'
-    echo "All the modules will be installed to the ${BUILD_DIR}${def_install_dir}"
-else
-    if [ "`echo $prefix | grep -E '^/'`" == "" ] ; then
-       prefix=${BUILD_DIR}/$prefix
-       echo
-       echo '!!! Warning !!! Relative prefix is used.'
-       echo "All the modules will be installed to the $prefix."
-    fi
-fi
-
-#########################################################
-# create log directory
-#########################################################
-if [ ! -e ${LOG_DIR} ] ; then
-    mkdir -p ${LOG_DIR}
-fi
-
-echo
-echo "==========================================================================="
-echo "Starting SALOME build at `date`"
-echo "==========================================================================="
-echo
-
-#########################################################
-# loop for all given modules
-#########################################################
-for module in ${modules}; do
-    echo ">>> Processing ${module} module"
-
-    module_src=`printenv ${module}_SRC_DIR`
-    module_build=${BUILD_DIR}/${module}_BUILD
-    
-    if [ "${module_src}" != "" ] ; then
-       cd ${BUILD_DIR}
-        #########################################################
-        # check if sources directory exists
-        #########################################################
-       if [ ! -e ${module_src} ] ; then
-           echo
-           echo '!!! Error !!! Cannot find module sources directory:'
-           echo "${module_src} does not exist."
-           echo
-           continue
-       fi
-        #########################################################
-        # check if configure script exists
-        #########################################################
-       cfg_exist=0
-       if [ -e ${module_src}/configure ] || [ -e ${module_src}/CMakeLists.txt ] ; then
-           cfg_exist=1
-       fi
-        #########################################################
-        # perform build_configure if -b flag is given or if 
-        # configure script does not exist (first compilation?)
-        #########################################################
-       if [ $is_build_configure -eq 1 ] || [ $cfg_exist -eq 0 ] ; then
-           echo "... Performing build_configure"
-           #########################################################
-            # check if build_configure script exists
-           #########################################################
-           if [ ! -e ${module_src}/build_configure ] && [ "${module}" != "PARAVIS" ] ; then
-               echo '!!! Warning !!! Cannot find build_configure script in '${module_src}'.'
-           else
-               if [ "${module}" == "PARAVIS" ]; then
-                   echo '!!! Warning !!! build_configure step is not executed for '${module}'.'                    
-               else
-                   #########################################################
-                    # call build_configure
-                   #########################################################
-                   mybuildconf_keys="${BUILDCONF_OPTS}"
-                   if [ $inst_with_gui -eq 0 ] ; then
-                       mybuildconf_keys="${mybuildconf_keys} --without-gui"
-                   fi
-                   cd ${module_src}
-                   ./build_configure ${mybuildconf_keys} >& ${LOG_DIR}/build_configure_${module}.log
-                   #########################################################
-                   # echo possible errors
-                   #########################################################
-                   if [ $verbose_level -gt 0 ] ; then
-                       cat ${LOG_DIR}/build_configure_${module}.log | grep -E "(failed|: error:)" >&2
-                   fi
-               fi
-           fi
-       fi
-        #########################################################
-        # deleting build directory if -d flag is given
-        #########################################################
-       if [ -e ${module_build} ] && [ $is_delete -eq 1 ] ; then
-           echo "... Removing ${module_build}"
-           chmod -R +w ${module_build} && rm -rf ${module_build} >& /dev/null
-           if [ "$?" != "0" ] ; then
-               echo
-               echo '!!! Warning !!! Cannot remove build directory ${module_build}. Permission denied.'
-               echo
-           fi
-       fi
-        #########################################################
-        # creating build directory if it does not exist
-        #########################################################
-       if [ ! -e ${module_build} ] ; then
-           mkdir -p ${module_build} >& /dev/null
-           if [ "$?" != "0" ] ; then
-               echo
-               echo '!!! Error !!! Cannot create build directory ${module_build}. Permission denied.'
-               echo
-               continue
-           fi
-       fi
-       cd ${module_build}
-        #########################################################
-        # check if top Makefile exists in build directory, i.e. 
-        # is it necessary to run configure script
-        #########################################################
-       mkfile_exist=0
-       if [ -e ${module_build}/Makefile ] ; then
-           mkfile_exist=1
-       fi
-        #########################################################
-        # check if configure options are changed from the 
-        # previous launch
-        #########################################################
-       opts_changed=0
-        #########################################################
-        # define installation directory (by using module's version
-        # number); default is a build directory
-        #########################################################
-       vx=""
-       if [ -e ${module_src}/configure.ac ] ; then
-           vx=`grep -e "^AC_INIT" ${module_src}/configure.ac | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
-       elif [ -e ${module_src}/configure.in.base ] ; then
-           vx=`grep -e "^VERSION=" ${module_src}/configure.in.base | awk -F= '{ if (NF>1) print $NF; }' | tr -d '[:space:]'`
-           if [ "$vx" == "" ] ; then
-               vx=`grep -e "^AC_INIT" ${module_src}/configure.in.base | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
-           fi
-       elif [ -e ${module_src}/CMakeLists.txt ] ; then
-           ver_maj=`cat ${module_src}/CMakeLists.txt | grep SET\(VERSION_MAJOR | sed -e "s%[A-Z_() ]%%g"`
-           ver_min=`cat ${module_src}/CMakeLists.txt | grep SET\(VERSION_MINOR | sed -e "s%[A-Z_() ]%%g"`
-           ver_maintenance=`cat ${module_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
-       if [ "$prefix" == "" ] ; then
-           px=${BUILD_DIR}${def_install_dir}/${module}${vx}
-       else
-           px=$prefix/${module}${vx}
-       fi
-        #########################################################
-        # perform configure if -c flag is given or if 
-        # Makefile does not exist (first compilation?)
-        #########################################################
-       if [ $is_configure -eq 1 ] || [ $mkfile_exist -eq 0 ] || [ $opts_changed -eq 1 ] ; then
-           echo "... Performing configure"
-           #########################################################
-           # check if configure script exists
-           #########################################################
-           if [ ! -e ${module_src}/configure ] && [ "${module}" != "PARAVIS" ] ; then
-               echo
-               echo '!!! Warning !!! Can not find configure script in '${module_src}'.'
-               echo
-           else
-               myconf_keys="${CONF_OPTS}"
-               if [ $inst_with_gui -eq 0 ] ; then
-                   myconf_keys="${myconf_keys} --without-gui"
-               fi
-               if [ "${module}" == "MED" ] && [ "${METISDIR}" != "" ] && [ "${SCOTCHDIR}" != "" ] ; then
-                   myconf_keys="${myconf_keys} --enable-splitter=yes --with-metis=${METISDIR} --with-scotch=${SCOTCHDIR}"
-               fi
-               if [ "${module}" == "NETGENPLUGIN" ] && [ "$NETGENHOME" != "" ] ; then
-                   myconf_keys="${myconf_keys} --with-netgen=${NETGENHOME}"
-               fi
-
-               if [ "${module}" == "PARAVIS" ] ; then
-                   cd ${module_build}; cmake ${module_src} -DCMAKE_INSTALL_PREFIX=$px >& ${LOG_DIR}/configure_${module}.log
-               else
-                   ${module_src}/configure --prefix=$px ${optim} ${myconf_keys} >& ${LOG_DIR}/configure_${module}.log
-               fi
-
-               #########################################################
-               # echo possible errors
-               #########################################################
-               if [ $verbose_level -gt 0 ] ; then
-                   cat ${LOG_DIR}/configure_${module}.log | grep ": error:" >&2
-               fi
-               if [ $verbose_level -gt 1 ] ; then
-                   cat ${LOG_DIR}/configure_${module}.log | grep ": WARNING:" >&2
-               fi
-           fi
-       fi
-        #########################################################
-        # perform make
-        #########################################################
-        echo "... Performing make"
-        #########################################################
-        # first clear dependencies
-        #########################################################
-       find . -name ".dep*" -type f -exec rm -f {} \; >& /dev/null
-        #########################################################
-        # then make
-        #########################################################
-       if [ "${module}" == "PARAVIS" ] ; then
-           VTK_AUTOLOAD_PATH_BACKUP=${VTK_AUTOLOAD_PATH}
-           test "${VTK_AUTOLOAD_PATH}" != "" && unset VTK_AUTOLOAD_PATH
-       fi
-       make >& ${LOG_DIR}/make_${module}.log
-       sts=$?
-       if [ "${module}" == "PARAVIS" ] ; then
-           test "${VTK_AUTOLOAD_PATH_BACKUP}" != "" && export VTK_AUTOLOAD_PATH=${VTK_AUTOLOAD_PATH_BACKUP}
-       fi
-        #########################################################
-        # if make step is successful set the ${module}_ROOT_DIR
-        # environment variable
-        #########################################################
-        #if [ $sts -eq 0 ] ; then
-       #    export ${module}_ROOT_DIR=${module_build}
-       #fi
-        #########################################################
-        # print make errors
-        #########################################################
-       cat ${LOG_DIR}/make_${module}.log | grep -Ei '[*][*][*].*error' >&2
-        #########################################################
-        # print compiler errors and warnings
-        # Note: here awk is used to concatenate together several lines of single
-        #       error or warning message produced by stupid gnu compiler
-        # Actually, instead of that we could use 'fmessage length=n' option of g++...
-        #########################################################
-       if [ $verbose_level -gt 0 ] ; then
-           ###cat ${LOG_DIR}/make_${module}.log | grep ": error"
-           cat ${LOG_DIR}/make_${module}.log | awk 'substr($0,0,1)!=" " {print ""} {print $0} END {print ""}' | grep "${module_src}/[A-Za-z_0-9./]*:" | sed s@"^${module_src}/src/"@@ >&2
-       fi
-       if [ $verbose_level -gt 1 ] ; then
-           cat ${LOG_DIR}/make_${module}.log | awk 'substr($0,0,1)!=" " {print ""} {print $0} END {print ""}' | grep -E ": warning|* Warning" | sed s@"^${module_src}/src/"@@ >&2
-       fi
-        #########################################################
-        # perform make dev_docs step if -t flag is given
-        #########################################################
-       if [ $is_tui -eq 1 ] && [ $sts -eq 0 ] && [ -d ${module_build}/doc ] ; then
-           cd ${module_build}/doc
-           dd=`cat Makefile | grep -E "dev_docs[[:space:]]*:"`
-           if [ "$dd" != "" ] ; then
-               echo "... Performing make dev_docs"
-               make dev_docs >& ${LOG_DIR}/make_dev_docs_${module}.log
-               cat ${LOG_DIR}/make_dev_docs_${module}.log | grep '[*][*][*]' >&2
-           fi
-       fi
-       cd ${module_build}
-        #########################################################
-        # perform make if -i or -p flags are given
-        #########################################################
-       if [ $is_install -eq 1 ] && [ $sts -eq 0 ] || [ "${module}" == "KERNEL" ] ; then
-           #########################################################
-           # deleting build directory if -d flag is given
-           #########################################################
-           if [ -e $px ] && [ $is_delete -eq 1 ] ; then
-               echo "... Removing $px"
-               rm -rf $px >& /dev/null
-               if [ "$?" != "0" ] ; then
-                   echo
-                   echo '!!! Warning !!! Cannot remove install directory ${px}. Permission denied.'
-                   echo
-               fi
-           fi
-           echo "... Performing make install"
-           make install >& ${LOG_DIR}/make_install_${module}.log
-           sts=$?
-           #########################################################
-           # if make install step is successful set the 
-            # ${module}_ROOT_DIR environment variable
-           #########################################################
-           if [ $sts -eq 0 ] ; then
-               export ${module}_ROOT_DIR=$px
-           fi
-       fi
-       echo ">>> Finished ${module} module"
-    else
-       echo
-       echo '!!! Error !!! Cannot find module sources. '${module}'_SRC_DIR environment variable is not set.'
-       echo
-    fi
-done
-#########################################################
-# finalize
-#########################################################
-cd ${BUILD_DIR}
-
-echo
-echo "==========================================================================="
-echo "SALOME build finished at `date`"
-echo "==========================================================================="
-echo 
diff --git a/scripts/env_build.csh b/scripts/env_build.csh
deleted file mode 100644 (file)
index e9393ed..0000000
+++ /dev/null
@@ -1,815 +0,0 @@
-
-###########################################################################
-# Aliases setenva and setenvp are used to append/prepend correspondingly 
-# one directory or a set of directories separated by semicolon symbol (':')
-# to the environment variables like PATH, LD_LIBRARY_PATH, PYTHONPATH,
-# LD_RUN_PATH etc. 
-# The main purpose is to replace default setenv command behavior:
-# setenva, setenvp also remove duplicated entries, shortening in that way
-# the environment variables.
-# If some directory being added is already included into the variable
-# nothing is done for it.
-# Note, that these aliases work some slower that setenv command itself.
-#
-#### cleandup ###
-# appends/prepends set of directories (second parameter) 
-# to the another set of directories (first parameter) and
-# removes duplicated entries;
-# the third parameter defines the mode: 0 - append, 1 - prepend
-alias cleandup "echo \!:1 \!:2 | awk -v dir=\!:3         \\
-'"'{ na = split($2,a,":");                               \\
-     k1=0;                                               \\
-     bbb[k1++]="";                                       \\
-     ccc[""];                                            \\
-     if($1 != "<empty>") {                               \\
-       nb = split($1,b,":");                             \\
-       for(i=1;i<=nb;i++) {                              \\
-         if(!(b[i] in ccc) ) {                           \\
-          ccc[b[i]];                                    \\
-           bbb[k1++]=b[i];                               \\
-        };                                              \\
-       };                                                \\
-     };                                                  \\
-     k2=0;                                               \\
-     aaa[k2++]="";                                       \\
-     for(i=1;i<=na;i++) {                                \\
-       if(!(a[i] in ccc)) {                              \\
-         ccc[a[i]];                                      \\
-         aaa[k2++]=a[i];                                 \\
-       };                                                \\
-     };                                                  \\
-     ORS=":";                                            \\
-     if(dir) {                                           \\
-       for(i=1;i<k2;i++) {                               \\
-         print aaa[i];                                   \\
-       }                                                 \\
-       for(i=1;i<k1;i++) {                               \\
-         print bbb[i];                                   \\
-       }                                                 \\
-     }                                                   \\
-     else {                                              \\
-       for(i=1;i<k1;i++) {                               \\
-         print bbb[i];                                   \\
-       }                                                 \\
-       for(i=1;i<k2;i++) {                               \\
-         print aaa[i];                                   \\
-       }                                                 \\
-     }                                                   \\
-  }'"' | sed -e 's/\(.*\):/\1/g'"
-### setenva ###
-# appends directory or set of directories, separated by ':' (second parameter)
-# to the variable (first parameter)
-alias setenva 'set a=\!:1 ; set b=\!:2 ;  \
-               set c=`printenv $a` ;      \
-               set b=`cleandup $c $b 0` ; \
-               setenv $a $b ;             \
-               unset a, b, c'
-
-### setenvp ###
-# prepends directory or set of directories, separated by ':' (second parameter)
-# to the variable (first parameter)
-alias setenvp 'set a=\!:1 ; set b=\!:2 ;  \
-               set c=`printenv $a` ;      \
-               set b=`cleandup $c $b 1` ; \
-               setenv $a $b ;             \
-               unset a, b, c'
-###########################################################################
-
-#------ setting initial PATH ------
-if (! ($?PATH) ) then
-  setenv PATH
-endif
-
-#------ setting initial LD_LIBRARY_PATH ------
-if (! ($?LD_LIBRARY_PATH) ) then
-  setenv LD_LIBRARY_PATH
-endif
-
-#------ setting initial LD_RUN_PATH ------
-if (! ($?LD_RUN_PATH) ) then
-  setenv LD_RUN_PATH
-endif
-
-#------ setting initial PYTHONPATH ------
-if (! ($?PYTHONPATH) ) then
-  setenv PYTHONPATH
-endif
-
-#------ setting initial TCLLIBPATH ------
-if (! ($?TCLLIBPATH) ) then
-  setenv TCLLIBPATH
-endif
-
-#------ Setting products installation directory ------
-setenv INST_ROOT /home/siman/salome_6.5.0
-
-#------ Environment switch: 0 for SALOME building, 1 for SALOME launching ------
-setenv ENV_FOR_LAUNCH 0
-
-#------ License activation ------
-setenv LICENSE_FILE /product/distene/dlim8.var.csh
-
-if ( -e ${LICENSE_FILE} ) then
-setenv SIMULOGD_LICENSE_FILE 29029@soleil
-source ${LICENSE_FILE}
-endif
-
-#------ tcltk ------
-setenv TCLHOME ${INST_ROOT}/tcltk-8.5.8
-setenvp PATH ${TCLHOME}/bin
-setenvp LD_LIBRARY_PATH ${TCLHOME}/lib
-setenv TCLLIBPATH "${TCLHOME}/lib ${TCLHOME}/lib/tcl8.5 ${TCLHOME}/lib/tk8.5"
-##
-## #------ tcltk_src ------
-## # nothing to do
-## ##
-#------ Python ------
-setenv PYTHONROOT ${INST_ROOT}/Python-2.6.6
-setenv PYTHONHOME $PYTHONROOT
-setenvp PATH ${PYTHONROOT}/bin
-setenvp LD_LIBRARY_PATH ${PYTHONROOT}/lib
-setenv PYTHON_VERSION 2.6
-setenv PYTHON_INCLUDE ${PYTHONROOT}/include/python${PYTHON_VERSION}
-setenvp PYTHONPATH ${PYTHONROOT}/lib/python${PYTHON_VERSION}
-##
-## #------ Python_src ------
-## # nothing to do
-## ##
-#------ Qt ------
-setenv QTDIR ${INST_ROOT}/qt-4.6.3
-setenvp PATH ${QTDIR}/bin 
-setenvp LD_LIBRARY_PATH ${QTDIR}/lib
-setenv QT_PLUGIN_PATH ${QTDIR}/plugins
-##
-## #------ Qt_src ------
-## # nothing to do
-## ##
-#------ Sip ------
-setenv SIPDIR ${INST_ROOT}/sip-4.13.2
-setenvp PATH ${SIPDIR}/bin
-setenvp PYTHONPATH ${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages
-setenvp LD_LIBRARY_PATH ${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages
-##
-## #------ Sip_src ------
-## # nothing to do
-## ##
-#------ PyQt ------
-setenv PYQTDIR ${INST_ROOT}/PyQt-4.9.1
-setenv PYQT_SIPS ${PYQTDIR}/sip
-setenvp PATH ${PYQTDIR}/bin
-setenvp PYTHONPATH ${PYQTDIR}:${PYQTDIR}/PyQt4
-setenvp LD_LIBRARY_PATH ${PYQTDIR}/PyQt4
-##
-## #------ PyQt_src ------
-## # nothing to do
-## ##
-#------ QScintilla ------
-setenv QSCINTILLA_DIR ${INST_ROOT}/QScintilla-2.6.1
-setenvp LD_LIBRARY_PATH ${QSCINTILLA_DIR}/lib
-##
-## #------ QScintilla_src ------
-## # nothing to do
-## ##
-#------ boost ------ 
-setenv BOOSTDIR ${INST_ROOT}/boost-1.49.0
-setenvp LD_LIBRARY_PATH ${BOOSTDIR}/lib
-setenvp PATH ${BOOSTDIR}/include
-##
-## #------ boost_src ------
-## # nothing to do
-## ##
-#------ Swig ------ 
-setenv SWIG_ROOT ${INST_ROOT}/swig-1.3.40
-setenvp PATH ${SWIG_ROOT}/bin
-setenv SWIG_LIB ${SWIG_ROOT}/share/swig/1.3.40
-##
-## #------ Swig_src ------
-## # nothing to do
-## ##
-#------ freetype ------
-setenv FREETYPEDIR ${INST_ROOT}/freetype-2.3.7
-setenvp LD_LIBRARY_PATH ${FREETYPEDIR}/lib
-##
-## #------ freetype_src ------
-## # nothing to do
-## ##
-#------ ftgl ------
-setenv FTGLDIR ${INST_ROOT}/ftgl-2.1.2
-setenvp PATH ${FTGLDIR}/bin 
-setenvp LD_LIBRARY_PATH ${FTGLDIR}/lib
-##
-## #------ ftgl_src ------
-## # nothing to do
-## ##
-#------ freeimage ------
-setenv FREEIMAGEDIR ${INST_ROOT}/freeimage-3.14.1
-setenvp PATH ${FREEIMAGEDIR}/bin 
-setenvp LD_LIBRARY_PATH ${FREEIMAGEDIR}/lib
-##
-## #------ freeimage_src ------
-## # nothing to do
-## ##
-#------ cmake ------
-setenv CMAKEHOME ${INST_ROOT}/cmake-2.8.7
-setenvp PATH ${CMAKEHOME}/bin
-##
-## #------ cmake_src ------
-## # nothing to do
-## ##
-#------ gl2ps ------
-setenv GL2PSHOME ${INST_ROOT}/gl2ps-1.3.5
-setenvp PATH ${GL2PSHOME}/bin 
-setenvp LD_LIBRARY_PATH ${GL2PSHOME}/lib
-##
-## #------ gl2ps_src ------
-## # nothing to do
-## ##
-#------ tbb ------
-setenv TBBHOME ${INST_ROOT}/tbb30_018oss
-setenvp PATH ${TBBHOME}/bin/intel64/cc4.1.0_libc2.4_kernel2.6.16.21 
-setenvp LD_LIBRARY_PATH ${TBBHOME}/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21
-##
-## #------ tbb_src ------
-## # nothing to do
-## ##
-#------ OpenCascade ------
-setenv CASROOT ${INST_ROOT}/OCCT-6.5.3
-setenvp PATH ${CASROOT}/bin
-setenvp LD_LIBRARY_PATH ${CASROOT}/lib:${CASROOT}/lin/lib
-# Variable for Foundation Classes : 
-setenv CSF_UnitsLexicon ${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
-setenv CSF_UnitsDefinition ${CASROOT}/src/UnitsAPI/Units.dat 
-# Variable for DataExchange : 
-setenv CSF_SHMessage ${CASROOT}/src/SHMessage
-setenv CSF_XSMessage ${CASROOT}/src/XSMessage 
-# Variable for Font : 
-setenv CSF_MDTVFontDirectory ${CASROOT}/src/FontMFT 
-setenv CSF_MDTVTexturesDirectory ${CASROOT}/src/Textures 
-# Activation of OCCT Kernel multithreading :
-setenv MMGT_REENTRANT 1
-##
-## #------ OpenCascade_src ------
-## # nothing to do
-## ##
-#------ Qwt ------
-setenv QWTHOME ${INST_ROOT}/qwt-5.2.1
-setenvp LD_LIBRARY_PATH ${QWTHOME}/lib 
-##
-## #------ Qwt_src ------
-## # nothing to do
-## ##
-#------ OmniORB ------
-setenv OMNIORBDIR ${INST_ROOT}/omniORB-4.1.6
-setenv OMNIORB_CONFIG ${OMNIORBDIR}/.omniORB.cfg
-setenvp PYTHONPATH ${OMNIORBDIR}/lib:${OMNIORBDIR}/lib/python${PYTHON_VERSION}/site-packages
-setenvp PATH $OMNIORBDIR/bin
-setenvp LD_LIBRARY_PATH $OMNIORBDIR/lib 
-##
-## #------ OmniORB_src ------
-## # nothing to do
-## ##
-#------ Hdf5 ------
-setenv HDF5HOME ${INST_ROOT}/hdf5-1.8.8
-setenvp PATH ${HDF5HOME}/bin
-setenvp LD_LIBRARY_PATH ${HDF5HOME}/lib
-##
-## #------ Hdf5_src ------
-## # nothing to do
-## ##
-#------ cgnslib ------
-setenv CGNSHOME ${INST_ROOT}/cgnslib-3.1.3
-setenvp PATH ${CGNSHOME}/bin
-setenvp LD_LIBRARY_PATH ${CGNSHOME}/lib
-##
-## #------ cgnslib_src ------
-## # nothing to do
-## ##
-#------ Med ------
-setenv MED3HOME ${INST_ROOT}/med-3.0.5
-setenvp PATH ${MED3HOME}/bin
-setenvp LD_LIBRARY_PATH ${MED3HOME}/lib
-##
-## #------ Med_src ------
-## # nothing to do
-## ##
-#------ Metis ------ 
-setenv METISDIR ${INST_ROOT}/metis-4.0
-##
-## #------ Metis_src ------
-## # nothing to do
-## ##
-#------ Scotch ------ 
-setenv SCOTCHDIR ${INST_ROOT}/scotch-5.1.11
-##
-## #------ Scotch_src ------
-## # nothing to do
-## ##
-#------ ParaView ------
-setenv PVHOME ${INST_ROOT}/ParaView-3.14.0
-setenvp PATH ${PVHOME}/bin
-setenvp LD_LIBRARY_PATH ${PVHOME}/lib/paraview-3.14
-setenvp PYTHONPATH ${PVHOME}/lib/paraview-3.14:${PVHOME}/lib/paraview-3.14/site-packages:${PVHOME}/lib/paraview-3.14/site-packages/paraview
-setenv VTK_DIR ${PVHOME}/lib/paraview-3.14
-setenv PV_PLUGIN_PATH ${PVHOME}/lib/paraview-3.14
-##
-## #------ ParaView_src ------
-## # nothing to do
-## ##
-#------ numpy ------
-setenvp PYTHONPATH ${INST_ROOT}/numpy-1.5.1/lib/python${PYTHON_VERSION}/site-packages
-setenvp PATH ${INST_ROOT}/numpy-1.5.1/bin
-setenvp LD_LIBRARY_PATH ${INST_ROOT}/numpy-1.5.1/lib
-##
-## #------ numpy_src ------
-## # nothing to do
-## ##
-#------ libBatch ------ 
-setenv LIBBATCH_ROOT_DIR ${INST_ROOT}/libBatch-1.5.0
-setenvp LD_LIBRARY_PATH ${LIBBATCH_ROOT_DIR}/lib
-setenvp PYTHONPATH ${LIBBATCH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages
-##
-## #------ libBatch_src ------
-## # nothing to do
-## ##
-#------ expat ------
-setenv EXPAT_ROOT ${INST_ROOT}/expat-2.0.1
-setenvp PATH ${EXPAT_ROOT}/bin
-setenvp LD_LIBRARY_PATH ${EXPAT_ROOT}/lib
-##
-## #------ expat_src ------
-## # nothing to do
-## ##
-#------ Graphviz ------
-setenv GRAPHVIZHOME ${INST_ROOT}/graphviz-2.28.0
-setenvp PATH ${GRAPHVIZHOME}/bin
-setenvp LD_LIBRARY_PATH ${GRAPHVIZHOME}/lib:${GRAPHVIZHOME}/lib/graphviz
-##
-## #------ Graphviz_src ------
-## # nothing to do
-## ##
-#------ Doxygen ------
-setenvp PATH ${INST_ROOT}/doxygen-1.8.0/bin
-##
-## #------ Doxygen_src ------
-## # nothing to do
-## ##
-#------ docutils ------
-setenvp PYTHONPATH ${INST_ROOT}/docutils-0.8.1/lib/python${PYTHON_VERSION}/site-packages
-setenvp PATH ${INST_ROOT}/docutils-0.8.1/bin
-##
-## #------ docutils_src ------
-## # nothing to do
-## ##
-#------ Sphinx ------
-setenvp PYTHONPATH ${INST_ROOT}/Sphinx-1.1.3/lib/python${PYTHON_VERSION}/site-packages
-setenvp PATH ${INST_ROOT}/Sphinx-1.1.3/bin
-##
-## #------ Sphinx_src ------
-## # nothing to do
-## ##
-#------ netgen ------
-setenv NETGENHOME ${INST_ROOT}/netgen-4.9.13
-setenvp LD_LIBRARY_PATH ${NETGENHOME}/lib
-##
-## #------ netgen_src ------
-## # nothing to do
-## ##
-#------ DISTENE ------
-setenv DISTENE_HOME ${INST_ROOT}/DISTENE
-setenv BLSURFHOME ${DISTENE_HOME}/Tools/BLSurf-3.1_64
-setenv HEXOTICHOME ${DISTENE_HOME}/Tools/Hexotic-V1.0_64
-setenvp LD_LIBRARY_PATH ${BLSURFHOME}/lib 
-setenvp PATH ${HEXOTICHOME}/bin:${DISTENE_HOME}/Tools/TetMesh-GHS3D4.1_64:${DISTENE_HOME}/Tools/TetMesh-GHS3D4.2_64
-##
-## #------ DISTENE_src ------
-## # nothing to do
-## ##
-#------ homard ------
-setenv homard_HOME ${INST_ROOT}/homard-10.4
-setenvp PATH ${homard_HOME}/HOMARD_V10.4_64
-##
-## #------ homard_src ------
-## # nothing to do
-## ##
-#------ libxml2 ------ 
-setenv LIBXML_DIR ${INST_ROOT}/libxml2-2.7.8
-setenvp PATH ${LIBXML_DIR}/bin
-setenvp LD_LIBRARY_PATH ${LIBXML_DIR}/lib
-##
-## #------ libxml2_src ------
-## # nothing to do
-## ##
-#------ KERNEL ------
-setenv KERNEL_ROOT_DIR ${INST_ROOT}/KERNEL_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${KERNEL_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${KERNEL_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${KERNEL_ROOT_DIR}/bin/salome:${KERNEL_ROOT_DIR}/lib/salome:${KERNEL_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ KERNEL_src ------
-setenv KERNEL_SRC_DIR ${INST_ROOT}/KERNEL_SRC_6.5.0
-##
-#------ GUI ------
-setenv GUI_ROOT_DIR ${INST_ROOT}/GUI_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${GUI_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${GUI_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${GUI_ROOT_DIR}/bin/salome:${GUI_ROOT_DIR}/lib/salome:${GUI_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    setenv VTK_AUTOLOAD_PATH ${GUI_ROOT_DIR}/lib/paraview
-  endif
-endif
-##
-#------ GUI_src ------
-setenv GUI_SRC_DIR ${INST_ROOT}/GUI_SRC_6.5.0
-##
-#------ GEOM ------
-setenv GEOM_ROOT_DIR ${INST_ROOT}/GEOM_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${GEOM_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${GEOM_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${GEOM_ROOT_DIR}/bin/salome:${GEOM_ROOT_DIR}/lib/salome:${GEOM_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ GEOM_src ------
-setenv GEOM_SRC_DIR ${INST_ROOT}/GEOM_SRC_6.5.0
-##
-#------ MED ------
-setenv MED_ROOT_DIR ${INST_ROOT}/MED_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${MED_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${MED_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${MED_ROOT_DIR}/bin/salome:${MED_ROOT_DIR}/lib/salome:${MED_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    setenv AM2CMAKE_FORCE_GENERATION 1
-  endif
-endif
-##
-#------ MED_src ------
-setenv MED_SRC_DIR ${INST_ROOT}/MED_SRC_6.5.0
-##
-#------ SMESH ------
-setenv SMESH_ROOT_DIR ${INST_ROOT}/SMESH_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${SMESH_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${SMESH_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${SMESH_ROOT_DIR}/bin/salome:${SMESH_ROOT_DIR}/lib/salome:${SMESH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ SMESH_src ------
-setenv SMESH_SRC_DIR ${INST_ROOT}/SMESH_SRC_6.5.0
-##
-#------ VISU ------
-setenv VISU_ROOT_DIR ${INST_ROOT}/VISU_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${VISU_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${VISU_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${VISU_ROOT_DIR}/bin/salome:${VISU_ROOT_DIR}/lib/salome:${VISU_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ VISU_src ------
-setenv VISU_SRC_DIR ${INST_ROOT}/VISU_SRC_6.5.0
-##
-#------ PARAVIS ------
-setenv PARAVIS_ROOT_DIR ${INST_ROOT}/PARAVIS_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${PARAVIS_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${PARAVIS_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${PARAVIS_ROOT_DIR}/bin/salome:${PARAVIS_ROOT_DIR}/lib/salome:${PARAVIS_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    setenv PV_PLUGIN_PATH ${PARAVIS_ROOT_DIR}/lib/paraview:${PV_PLUGIN_PATH}
-  endif
-endif
-##
-#------ PARAVIS_src ------
-setenv PARAVIS_SRC_DIR ${INST_ROOT}/PARAVIS_SRC_6.5.0
-setenv ACCEPT_PARAVIS_WARNINGS 1
-##
-#------ HEXABLOCK ------
-setenv HEXABLOCK_ROOT_DIR ${INST_ROOT}/HEXABLOCK_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${HEXABLOCK_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${HEXABLOCK_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HEXABLOCK_ROOT_DIR}/bin/salome:${HEXABLOCK_ROOT_DIR}/lib/salome:${HEXABLOCK_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HEXABLOCK_src ------
-setenv HEXABLOCK_SRC_DIR ${INST_ROOT}/HEXABLOCK_SRC_6.5.0
-##
-#------ HEXABLOCKPLUGIN ------
-setenv HEXABLOCKPLUGIN_ROOT_DIR ${INST_ROOT}/HEXABLOCKPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp LD_LIBRARY_PATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome:${HEXABLOCKPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HEXABLOCKPLUGIN_src ------
-setenv HEXABLOCKPLUGIN_SRC_DIR ${INST_ROOT}/HEXABLOCKPLUGIN_SRC_6.5.0
-##
-#------ NETGENPLUGIN ------
-setenv NETGENPLUGIN_ROOT_DIR ${INST_ROOT}/NETGENPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp LD_LIBRARY_PATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome:${NETGENPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ NETGENPLUGIN_src ------
-setenv NETGENPLUGIN_SRC_DIR ${INST_ROOT}/NETGENPLUGIN_SRC_6.5.0
-##
-#------ GHS3DPLUGIN ------
-setenv GHS3DPLUGIN_ROOT_DIR ${INST_ROOT}/GHS3DPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp LD_LIBRARY_PATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome:${GHS3DPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ GHS3DPLUGIN_src ------
-setenv GHS3DPLUGIN_SRC_DIR ${INST_ROOT}/GHS3DPLUGIN_SRC_6.5.0
-##
-#------ GHS3DPRLPLUGIN ------
-setenv GHS3DPRLPLUGIN_ROOT_DIR ${INST_ROOT}/GHS3DPRLPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome:${GHS3DPRLPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ GHS3DPRLPLUGIN_src ------
-setenv GHS3DPRLPLUGIN_SRC_DIR ${INST_ROOT}/GHS3DPRLPLUGIN_SRC_6.5.0
-##
-#------ BLSURFPLUGIN ------
-setenv BLSURFPLUGIN_ROOT_DIR ${INST_ROOT}/BLSURFPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${BLSURFPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome:${BLSURFPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ BLSURFPLUGIN_src ------
-setenv BLSURFPLUGIN_SRC_DIR ${INST_ROOT}/BLSURFPLUGIN_SRC_6.5.0
-##
-#------ HexoticPLUGIN ------
-setenv HexoticPLUGIN_ROOT_DIR ${INST_ROOT}/HexoticPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${HexoticPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome:${HexoticPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HexoticPLUGIN_src ------
-setenv HexoticPLUGIN_SRC_DIR ${INST_ROOT}/HexoticPLUGIN_SRC_6.5.0
-##
-#------ COMPONENT ------
-setenv COMPONENT_ROOT_DIR ${INST_ROOT}/COMPONENT_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${COMPONENT_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${COMPONENT_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${COMPONENT_ROOT_DIR}/bin/salome:${COMPONENT_ROOT_DIR}/lib/salome:${COMPONENT_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ COMPONENT_src ------
-setenv COMPONENT_SRC_DIR ${INST_ROOT}/COMPONENT_SRC_6.5.0
-##
-#------ PYCALCULATOR ------
-setenv PYCALCULATOR_ROOT_DIR ${INST_ROOT}/PYCALCULATOR_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${PYCALCULATOR_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${PYCALCULATOR_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${PYCALCULATOR_ROOT_DIR}/bin/salome:${PYCALCULATOR_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ PYCALCULATOR_src ------
-setenv PYCALCULATOR_SRC_DIR ${INST_ROOT}/PYCALCULATOR_SRC_6.5.0
-##
-#------ CALCULATOR ------
-setenv CALCULATOR_ROOT_DIR ${INST_ROOT}/CALCULATOR_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${CALCULATOR_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${CALCULATOR_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${CALCULATOR_ROOT_DIR}/bin/salome:${CALCULATOR_ROOT_DIR}/lib/salome:${CALCULATOR_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ CALCULATOR_src ------
-setenv CALCULATOR_SRC_DIR ${INST_ROOT}/CALCULATOR_SRC_6.5.0
-##
-#------ HELLO ------
-setenv HELLO_ROOT_DIR ${INST_ROOT}/HELLO_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${HELLO_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${HELLO_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HELLO_ROOT_DIR}/bin/salome:${HELLO_ROOT_DIR}/lib/salome:${HELLO_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HELLO_src ------
-setenv HELLO_SRC_DIR ${INST_ROOT}/HELLO_SRC_6.5.0
-##
-#------ PYHELLO ------
-setenv PYHELLO_ROOT_DIR ${INST_ROOT}/PYHELLO_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${PYHELLO_ROOT_DIR}/bin/salome
-    setenvp PYTHONPATH ${PYHELLO_ROOT_DIR}/bin/salome:${PYHELLO_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ PYHELLO_src ------
-setenv PYHELLO_SRC_DIR ${INST_ROOT}/PYHELLO_SRC_6.5.0
-##
-#------ ATOMGEN ------
-setenv ATOMGEN_ROOT_DIR ${INST_ROOT}/ATOMGEN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${ATOMGEN_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${ATOMGEN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${ATOMGEN_ROOT_DIR}/bin/salome:${ATOMGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ ATOMGEN_src ------
-setenv ATOMGEN_SRC_DIR ${INST_ROOT}/ATOMGEN_SRC_6.5.0
-##
-#------ ATOMSOLV ------
-setenv ATOMSOLV_ROOT_DIR ${INST_ROOT}/ATOMSOLV_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${ATOMSOLV_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${ATOMSOLV_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${ATOMSOLV_ROOT_DIR}/bin/salome:${ATOMSOLV_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ ATOMSOLV_src ------
-setenv ATOMSOLV_SRC_DIR ${INST_ROOT}/ATOMSOLV_SRC_6.5.0
-##
-#------ ATOMIC ------
-setenv ATOMIC_ROOT_DIR ${INST_ROOT}/ATOMIC_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${ATOMIC_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${ATOMIC_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${ATOMIC_ROOT_DIR}/bin/salome:${ATOMIC_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ ATOMIC_src ------
-setenv ATOMIC_SRC_DIR ${INST_ROOT}/ATOMIC_SRC_6.5.0
-##
-#------ LIGHT ------
-setenv LIGHT_ROOT_DIR ${INST_ROOT}/LIGHT_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp LD_LIBRARY_PATH ${LIGHT_ROOT_DIR}/lib/salome
-  endif
-endif
-##
-#------ LIGHT_src ------
-setenv LIGHT_SRC_DIR ${INST_ROOT}/LIGHT_SRC_6.5.0
-##
-#------ PYLIGHT ------
-setenv PYLIGHT_ROOT_DIR ${INST_ROOT}/PYLIGHT_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${PYLIGHT_ROOT_DIR}/bin/salome
-    setenvp PYTHONPATH ${PYLIGHT_ROOT_DIR}/bin/salome
-  endif
-endif
-##
-#------ PYLIGHT_src ------
-setenv PYLIGHT_SRC_DIR ${INST_ROOT}/PYLIGHT_SRC_6.5.0
-##
-#------ RANDOMIZER ------
-setenv RANDOMIZER_ROOT_DIR ${INST_ROOT}/RANDOMIZER_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${RANDOMIZER_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${RANDOMIZER_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${RANDOMIZER_ROOT_DIR}/bin/salome:${RANDOMIZER_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ RANDOMIZER_src ------
-setenv RANDOMIZER_SRC_DIR ${INST_ROOT}/RANDOMIZER_SRC_6.5.0
-##
-#------ SIERPINSKY ------
-setenv SIERPINSKY_ROOT_DIR ${INST_ROOT}/SIERPINSKY_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${SIERPINSKY_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${SIERPINSKY_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${SIERPINSKY_ROOT_DIR}/bin/salome:${SIERPINSKY_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ SIERPINSKY_src ------
-setenv SIERPINSKY_SRC_DIR ${INST_ROOT}/SIERPINSKY_SRC_6.5.0
-##
-#------ YACS ------
-setenv YACS_ROOT_DIR ${INST_ROOT}/YACS_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${YACS_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${YACS_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${YACS_ROOT_DIR}/bin/salome:${YACS_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ YACS_src ------
-setenv YACS_SRC_DIR ${INST_ROOT}/YACS_SRC_6.5.0
-##
-#------ YACSGEN ------
-setenv YACSGEN_ROOT_DIR ${INST_ROOT}/YACSGEN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PYTHONPATH ${YACSGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages
-  endif
-endif
-##
-#------ YACSGEN_src ------
-setenv YACSGEN_SRC_DIR ${INST_ROOT}/YACSGEN_SRC_6.5.0
-##
-#------ JOBMANAGER ------
-setenv JOBMANAGER_ROOT_DIR ${INST_ROOT}/JOBMANAGER_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${JOBMANAGER_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${JOBMANAGER_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${JOBMANAGER_ROOT_DIR}/bin/salome:${JOBMANAGER_ROOT_DIR}/lib/salome:${JOBMANAGER_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ JOBMANAGER_src ------
-setenv JOBMANAGER_SRC_DIR ${INST_ROOT}/JOBMANAGER_SRC_6.5.0
-##
-#------ SAMPLES_src ------
-setenv DATA_DIR ${INST_ROOT}/SAMPLES_SRC_6.5.0
-##
-#------ TUTORIAL_src ------
-##
-#------ HOMARD ------
-setenv HOMARD_ROOT_DIR ${INST_ROOT}/HOMARD_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${HOMARD_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${HOMARD_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HOMARD_ROOT_DIR}/bin/salome:${HOMARD_ROOT_DIR}/lib/salome:${HOMARD_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HOMARD_src ------
-setenv HOMARD_SRC_DIR ${INST_ROOT}/HOMARD_SRC_6.5.0
-##
-#------ xdata ------ 
-setenv XDATAROOT ${INST_ROOT}/xdata-0.9.3
-setenvp PATH ${XDATAROOT}/bin
-setenvp PYTHONPATH ${XDATAROOT}/lib/python${PYTHON_VERSION}/site-packages/xdata
-##
-#------ xdata_src ------
-# nothing to do
-##
-#------ HXX2SALOME ------
-setenv HXX2SALOME_ROOT_DIR ${INST_ROOT}/HXX2SALOME_6.5.0/bin
-setenvp PATH ${HXX2SALOME_ROOT_DIR}
-##
-#------ HXX2SALOME_src ------
-# nothing to do
-##
-#------ HXX2SALOMEDOC ------
-#nothing to do
-##
-#------ HXX2SALOMEDOC_src ------
-# nothing to do
-##
-#------ DOCUMENTATION_src ------
-#nothing to do
-##
diff --git a/scripts/env_build.sh b/scripts/env_build.sh
deleted file mode 100644 (file)
index b325f2f..0000000
+++ /dev/null
@@ -1,786 +0,0 @@
-##########################################################################
-# Functions exporta and exportp are used to append/prepend correspondingly 
-# one directory or a set of directories separated by semicolon symbol (':')
-# to the environment variables like PATH, LD_LIBRARY_PATH, PYTHONPATH,
-# LD_RUN_PATH etc. 
-# The main purpose is to replace default setenv command behavior:
-# exporta, exportp also remove duplicated entries, shortening in that way
-# the environment variables.
-# If some directory being added is already included into the variable
-# nothing is done for it.
-# Note, that these functions work some slower that setenv command itself.
-#
-#### cleandup ###
-# appends/prepends set of directories (second parameter) 
-# to the another set of directories (first parameter) and
-# removes duplicated entries;
-# the third parameter defines the mode: 0 - append, 1 - prepend
-cleandup() {
-out_var=`echo $1 $2 | awk -v dir=$3 '{                   \
-     na = split($2,a,":");                               \
-     k1=0;                                               \
-     bbb[k1++]="";                                       \
-     ccc[""];                                            \
-     if($1 != "<empty>") {                               \
-       nb = split($1,b,":");                             \
-       for(i=1;i<=nb;i++) {                              \
-         if(!(b[i] in ccc) ) {                           \
-          ccc[b[i]];                                    \
-           bbb[k1++]=b[i];                               \
-        };                                              \
-       };                                                \
-     };                                                  \
-     k2=0;                                               \
-     aaa[k2++]="";                                       \
-     for(i=1;i<=na;i++) {                                \
-       if(!(a[i] in ccc)) {                              \
-         ccc[a[i]];                                      \
-         aaa[k2++]=a[i];                                 \
-       };                                                \
-     };                                                  \
-     ORS=":";                                            \
-     if(dir) {                                           \
-       for(i=1;i<k2;i++) {                               \
-         print aaa[i];                                   \
-       }                                                 \
-       for(i=1;i<k1;i++) {                               \
-         print bbb[i];                                   \
-       }                                                 \
-     }                                                   \
-     else {                                              \
-       for(i=1;i<k1;i++) {                               \
-         print bbb[i];                                   \
-       }                                                 \
-       for(i=1;i<k2;i++) {                               \
-         print aaa[i];                                   \
-       }                                                 \
-     }                                                   \
-   }' | sed -e 's/\(.*\):/\1/g'`
-echo $out_var
-}
-### exporta ###
-# appends directory or set of directories, separated by ':' (second parameter)
-# to the variable (first parameter)
-exporta () { 
-xenv=`printenv $1`
-if [ -z "$xenv" ]; then xenv="<empty>"; fi
-out_var=`cleandup $xenv $2 0`
-export $1=$out_var
-}
-### exportp ###
-# prepends directory or set of directories, separated by ':' (second parameter)
-# to the variable (first parameter)
-exportp () { 
-xenv=`printenv $1`
-if [ -z "$xenv" ]; then xenv="<empty>"; fi
-out_var=`cleandup $xenv $2 1`
-export $1=$out_var
-}
-###########################################################################
-
-#------ Setting products installation directory ------
-export INST_ROOT=/home/siman/salome_6.5.0
-#export INST_ROOT=/dn24/SIMAN/PRODUCTS/MANDRIVA.2010.64/salome_6.5.0
-
-#------ Environment switch: 0 for SALOME building, 1 for SALOME launching ------
-export ENV_FOR_LAUNCH=0
-
-#------ License activation ------
-export LICENSE_FILE=/product/distene/dlim8.var.sh
-
-if [ -e "${LICENSE_FILE}" ] ; then
-export SIMULOGD_LICENSE_FILE=29029@soleil
-source ${LICENSE_FILE}
-fi
-
-#------ tcltk ------
-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"
-##
-## #------ tcltk_src ------
-## # nothing to do
-## ##
-#------ Python ------
-export PYTHONROOT=${INST_ROOT}/Python-2.6.6
-export PYTHONHOME=$PYTHONROOT
-exportp PATH ${PYTHONROOT}/bin
-exportp LD_LIBRARY_PATH ${PYTHONROOT}/lib
-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
-## ##
-#------ 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
-## ##
-#------ 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
-## ##
-#------ PyQt ------
-export PYQTDIR=${INST_ROOT}/PyQt-4.9.1
-export PYQT_SIPS=${PYQTDIR}/sip
-exportp PATH ${PYQTDIR}/bin
-exportp PYTHONPATH ${PYQTDIR}:${PYQTDIR}/PyQt4
-exportp LD_LIBRARY_PATH ${PYQTDIR}/PyQt4
-##
-## #------ 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
-## ##
-#------ boost ------ 
-export BOOSTDIR=${INST_ROOT}/boost-1.49.0
-exportp LD_LIBRARY_PATH ${BOOSTDIR}/lib
-exportp PATH ${BOOSTDIR}/include
-##
-## #------ 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
-## ##
-#------ freetype ------
-export FREETYPEDIR=${INST_ROOT}/freetype-2.3.7
-exportp LD_LIBRARY_PATH ${FREETYPEDIR}/lib
-##
-## #------ freetype_src ------
-## # nothing to do
-## ##
-#------ ftgl ------
-export FTGLDIR=${INST_ROOT}/ftgl-2.1.2
-exportp PATH ${FTGLDIR}/bin 
-exportp LD_LIBRARY_PATH ${FTGLDIR}/lib
-##
-## #------ ftgl_src ------
-## # nothing to do
-## ##
-#------ freeimage ------
-export FREEIMAGEDIR=${INST_ROOT}/freeimage-3.14.1
-exportp PATH ${FREEIMAGEDIR}/bin 
-exportp LD_LIBRARY_PATH ${FREEIMAGEDIR}/lib
-##
-## #------ freeimage_src ------
-## # nothing to do
-## ##
-#------ cmake ------
-export CMAKEHOME=${INST_ROOT}/cmake-2.8.7
-exportp PATH ${CMAKEHOME}/bin
-##
-## #------ cmake_src ------
-## # nothing to do
-## ##
-#------ gl2ps ------
-export GL2PSHOME=${INST_ROOT}/gl2ps-1.3.5
-exportp PATH ${GL2PSHOME}/bin 
-exportp LD_LIBRARY_PATH ${GL2PSHOME}/lib
-##
-## #------ gl2ps_src ------
-## # nothing to do
-## ##
-#------ tbb ------
-export TBBHOME=${INST_ROOT}/tbb30_018oss
-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
-##
-## #------ tbb_src ------
-## # nothing to do
-## ##
-#------ OpenCascade ------
-export CASROOT=${INST_ROOT}/OCCT-6.5.3
-exportp PATH ${CASROOT}/bin
-exportp LD_LIBRARY_PATH ${CASROOT}/lib:${CASROOT}/lin/lib
-# Variable for Foundation Classes : 
-export CSF_UnitsLexicon=${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
-export CSF_UnitsDefinition=${CASROOT}/src/UnitsAPI/Units.dat 
-# Variable for DataExchange : 
-export CSF_SHMessage=${CASROOT}/src/SHMessage
-export CSF_XSMessage=${CASROOT}/src/XSMessage 
-# Variable for Font : 
-export CSF_MDTVFontDirectory=${CASROOT}/src/FontMFT 
-export CSF_MDTVTexturesDirectory=${CASROOT}/src/Textures 
-# Activation of OCCT Kernel multithreading :
-export MMGT_REENTRANT=1
-##
-## #------ OpenCascade_src ------
-## # nothing to do
-## ##
-#------ Qwt ------
-export QWTHOME=${INST_ROOT}/qwt-5.2.1
-exportp LD_LIBRARY_PATH ${QWTHOME}/lib 
-##
-## #------ Qwt_src ------
-## # nothing to do
-## ##
-#------ OmniORB ------
-export OMNIORBDIR=${INST_ROOT}/omniORB-4.1.6
-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
-## ##
-#------ Hdf5 ------
-export HDF5HOME=${INST_ROOT}/hdf5-1.8.8
-exportp PATH ${HDF5HOME}/bin
-exportp LD_LIBRARY_PATH ${HDF5HOME}/lib
-##
-## #------ 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
-## ##
-#------ Med ------
-export MED3HOME=${INST_ROOT}/med-3.0.5
-exportp PATH ${MED3HOME}/bin
-exportp LD_LIBRARY_PATH ${MED3HOME}/lib
-##
-## #------ Med_src ------
-## # nothing to do
-## ##
-#------ Metis ------ 
-export METISDIR=${INST_ROOT}/metis-4.0
-##
-## #------ Metis_src ------
-## # nothing to do
-## ##
-#------ Scotch ------ 
-export SCOTCHDIR=${INST_ROOT}/scotch-5.1.11
-##
-## #------ Scotch_src ------
-## # nothing to do
-## ##
-#------ ParaView ------
-export PVHOME=${INST_ROOT}/ParaView-3.14.0
-exportp PATH ${PVHOME}/bin
-exportp LD_LIBRARY_PATH ${PVHOME}/lib/paraview-3.14
-exportp PYTHONPATH ${PVHOME}/lib/paraview-3.14:${PVHOME}/lib/paraview-3.14/site-packages:${PVHOME}/lib/paraview-3.14/site-packages/paraview
-export VTK_DIR=${PVHOME}/lib/paraview-3.14
-export PV_PLUGIN_PATH=${PVHOME}/lib/paraview-3.14
-##
-## #------ 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
-## ##
-#------ 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
-## ##
-#------ 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
-## ##
-#------ Doxygen ------
-exportp PATH ${INST_ROOT}/doxygen-1.8.0/bin
-##
-## #------ 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
-## ##
-#------ 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
-## ##
-#------ netgen ------
-export NETGENHOME=${INST_ROOT}/netgen-4.9.13
-exportp LD_LIBRARY_PATH ${NETGENHOME}/lib
-##
-## #------ 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
-## ##
-#------ homard ------
-export homard_HOME=${INST_ROOT}/homard-10.4
-exportp PATH ${homard_HOME}/HOMARD_V10.4_64
-##
-## #------ homard_src ------
-## # nothing to do
-## ##
-#------ KERNEL ------
-export KERNEL_ROOT_DIR=${INST_ROOT}/KERNEL_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${KERNEL_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${KERNEL_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${KERNEL_ROOT_DIR}/bin/salome:${KERNEL_ROOT_DIR}/lib/salome:${KERNEL_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ KERNEL_src ------
-export KERNEL_SRC_DIR=${INST_ROOT}/KERNEL_SRC_6.5.0
-##
-#------ GUI ------
-export GUI_ROOT_DIR=${INST_ROOT}/GUI_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${GUI_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${GUI_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${GUI_ROOT_DIR}/bin/salome:${GUI_ROOT_DIR}/lib/salome:${GUI_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    export VTK_AUTOLOAD_PATH=${GUI_ROOT_DIR}/lib/paraview
-  fi
-fi
-##
-#------ GUI_src ------
-export GUI_SRC_DIR=${INST_ROOT}/GUI_SRC_6.5.0
-##
-#------ GEOM ------
-export GEOM_ROOT_DIR=${INST_ROOT}/GEOM_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${GEOM_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${GEOM_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${GEOM_ROOT_DIR}/bin/salome:${GEOM_ROOT_DIR}/lib/salome:${GEOM_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ GEOM_src ------
-export GEOM_SRC_DIR=${INST_ROOT}/GEOM_SRC_6.5.0
-##
-#------ MED ------
-export MED_ROOT_DIR=${INST_ROOT}/MED_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${MED_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${MED_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${MED_ROOT_DIR}/bin/salome:${MED_ROOT_DIR}/lib/salome:${MED_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    export AM2CMAKE_FORCE_GENERATION=1
-  fi
-fi
-##
-#------ MED_src ------
-export MED_SRC_DIR=${INST_ROOT}/MED_SRC_6.5.0
-##
-#------ SMESH ------
-export SMESH_ROOT_DIR=${INST_ROOT}/SMESH_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${SMESH_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${SMESH_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${SMESH_ROOT_DIR}/bin/salome:${SMESH_ROOT_DIR}/lib/salome:${SMESH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ SMESH_src ------
-export SMESH_SRC_DIR=${INST_ROOT}/SMESH_SRC_6.5.0
-##
-#------ VISU ------
-export VISU_ROOT_DIR=${INST_ROOT}/VISU_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${VISU_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${VISU_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${VISU_ROOT_DIR}/bin/salome:${VISU_ROOT_DIR}/lib/salome:${VISU_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ VISU_src ------
-export VISU_SRC_DIR=${INST_ROOT}/VISU_SRC_6.5.0
-##
-#------ PARAVIS ------
-export PARAVIS_ROOT_DIR=${INST_ROOT}/PARAVIS_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${PARAVIS_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${PARAVIS_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${PARAVIS_ROOT_DIR}/bin/salome:${PARAVIS_ROOT_DIR}/lib/salome:${PARAVIS_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    export PV_PLUGIN_PATH=${PARAVIS_ROOT_DIR}/lib/paraview:${PV_PLUGIN_PATH}
-  fi
-fi
-##
-#------ PARAVIS_src ------
-export PARAVIS_SRC_DIR=${INST_ROOT}/PARAVIS_SRC_6.5.0
-export ACCEPT_PARAVIS_WARNINGS=1
-##
-#------ HEXABLOCK ------
-export HEXABLOCK_ROOT_DIR=${INST_ROOT}/HEXABLOCK_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${HEXABLOCK_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${HEXABLOCK_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HEXABLOCK_ROOT_DIR}/bin/salome:${HEXABLOCK_ROOT_DIR}/lib/salome:${HEXABLOCK_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HEXABLOCK_src ------
-export HEXABLOCK_SRC_DIR=${INST_ROOT}/HEXABLOCK_SRC_6.5.0
-##
-#------ HEXABLOCKPLUGIN ------
-export HEXABLOCKPLUGIN_ROOT_DIR=${INST_ROOT}/HEXABLOCKPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp LD_LIBRARY_PATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome:${HEXABLOCKPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HEXABLOCKPLUGIN_src ------
-export HEXABLOCKPLUGIN_SRC_DIR=${INST_ROOT}/HEXABLOCKPLUGIN_SRC_6.5.0
-##
-#------ NETGENPLUGIN ------
-export NETGENPLUGIN_ROOT_DIR=${INST_ROOT}/NETGENPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp LD_LIBRARY_PATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome:${NETGENPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ NETGENPLUGIN_src ------
-export NETGENPLUGIN_SRC_DIR=${INST_ROOT}/NETGENPLUGIN_SRC_6.5.0
-##
-#------ GHS3DPLUGIN ------
-export GHS3DPLUGIN_ROOT_DIR=${INST_ROOT}/GHS3DPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp LD_LIBRARY_PATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome:${GHS3DPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ GHS3DPLUGIN_src ------
-export GHS3DPLUGIN_SRC_DIR=${INST_ROOT}/GHS3DPLUGIN_SRC_6.5.0
-##
-#------ GHS3DPRLPLUGIN ------
-export GHS3DPRLPLUGIN_ROOT_DIR=${INST_ROOT}/GHS3DPRLPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome:${GHS3DPRLPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ GHS3DPRLPLUGIN_src ------
-export GHS3DPRLPLUGIN_SRC_DIR=${INST_ROOT}/GHS3DPRLPLUGIN_SRC_6.5.0
-##
-#------ BLSURFPLUGIN ------
-export BLSURFPLUGIN_ROOT_DIR=${INST_ROOT}/BLSURFPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${BLSURFPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome:${BLSURFPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ BLSURFPLUGIN_src ------
-export BLSURFPLUGIN_SRC_DIR=${INST_ROOT}/BLSURFPLUGIN_SRC_6.5.0
-##
-#------ HexoticPLUGIN ------
-export HexoticPLUGIN_ROOT_DIR=${INST_ROOT}/HexoticPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${HexoticPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome:${HexoticPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HexoticPLUGIN_src ------
-export HexoticPLUGIN_SRC_DIR=${INST_ROOT}/HexoticPLUGIN_SRC_6.5.0
-##
-#------ COMPONENT ------
-export COMPONENT_ROOT_DIR=${INST_ROOT}/COMPONENT_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${COMPONENT_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${COMPONENT_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${COMPONENT_ROOT_DIR}/bin/salome:${COMPONENT_ROOT_DIR}/lib/salome:${COMPONENT_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ COMPONENT_src ------
-export COMPONENT_SRC_DIR=${INST_ROOT}/COMPONENT_SRC_6.5.0
-##
-#------ PYCALCULATOR ------
-export PYCALCULATOR_ROOT_DIR=${INST_ROOT}/PYCALCULATOR_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${PYCALCULATOR_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${PYCALCULATOR_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${PYCALCULATOR_ROOT_DIR}/bin/salome:${PYCALCULATOR_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ PYCALCULATOR_src ------
-export PYCALCULATOR_SRC_DIR=${INST_ROOT}/PYCALCULATOR_SRC_6.5.0
-##
-#------ CALCULATOR ------
-export CALCULATOR_ROOT_DIR=${INST_ROOT}/CALCULATOR_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${CALCULATOR_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${CALCULATOR_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${CALCULATOR_ROOT_DIR}/bin/salome:${CALCULATOR_ROOT_DIR}/lib/salome:${CALCULATOR_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ CALCULATOR_src ------
-export CALCULATOR_SRC_DIR=${INST_ROOT}/CALCULATOR_SRC_6.5.0
-##
-#------ HELLO ------
-export HELLO_ROOT_DIR=${INST_ROOT}/HELLO_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${HELLO_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${HELLO_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HELLO_ROOT_DIR}/bin/salome:${HELLO_ROOT_DIR}/lib/salome:${HELLO_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HELLO_src ------
-export HELLO_SRC_DIR=${INST_ROOT}/HELLO_SRC_6.5.0
-##
-#------ PYHELLO ------
-export PYHELLO_ROOT_DIR=${INST_ROOT}/PYHELLO_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${PYHELLO_ROOT_DIR}/bin/salome
-    exportp PYTHONPATH ${PYHELLO_ROOT_DIR}/bin/salome:${PYHELLO_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ PYHELLO_src ------
-export PYHELLO_SRC_DIR=${INST_ROOT}/PYHELLO_SRC_6.5.0
-##
-#------ ATOMGEN ------
-export ATOMGEN_ROOT_DIR=${INST_ROOT}/ATOMGEN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${ATOMGEN_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${ATOMGEN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${ATOMGEN_ROOT_DIR}/bin/salome:${ATOMGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ ATOMGEN_src ------
-export ATOMGEN_SRC_DIR=${INST_ROOT}/ATOMGEN_SRC_6.5.0
-##
-#------ ATOMSOLV ------
-export ATOMSOLV_ROOT_DIR=${INST_ROOT}/ATOMSOLV_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${ATOMSOLV_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${ATOMSOLV_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${ATOMSOLV_ROOT_DIR}/bin/salome:${ATOMSOLV_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ ATOMSOLV_src ------
-export ATOMSOLV_SRC_DIR=${INST_ROOT}/ATOMSOLV_SRC_6.5.0
-##
-#------ ATOMIC ------
-export ATOMIC_ROOT_DIR=${INST_ROOT}/ATOMIC_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${ATOMIC_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${ATOMIC_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${ATOMIC_ROOT_DIR}/bin/salome:${ATOMIC_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ ATOMIC_src ------
-export ATOMIC_SRC_DIR=${INST_ROOT}/ATOMIC_SRC_6.5.0
-##
-#------ LIGHT ------
-export LIGHT_ROOT_DIR=${INST_ROOT}/LIGHT_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp LD_LIBRARY_PATH ${LIGHT_ROOT_DIR}/lib/salome
-  fi
-fi
-##
-#------ LIGHT_src ------
-export LIGHT_SRC_DIR=${INST_ROOT}/LIGHT_SRC_6.5.0
-##
-#------ PYLIGHT ------
-export PYLIGHT_ROOT_DIR=${INST_ROOT}/PYLIGHT_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${PYLIGHT_ROOT_DIR}/bin/salome
-    exportp PYTHONPATH ${PYLIGHT_ROOT_DIR}/bin/salome
-  fi
-fi
-##
-#------ PYLIGHT_src ------
-export PYLIGHT_SRC_DIR=${INST_ROOT}/PYLIGHT_SRC_6.5.0
-##
-#------ RANDOMIZER ------
-export RANDOMIZER_ROOT_DIR=${INST_ROOT}/RANDOMIZER_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${RANDOMIZER_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${RANDOMIZER_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${RANDOMIZER_ROOT_DIR}/bin/salome:${RANDOMIZER_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ RANDOMIZER_src ------
-export RANDOMIZER_SRC_DIR=${INST_ROOT}/RANDOMIZER_SRC_6.5.0
-##
-#------ SIERPINSKY ------
-export SIERPINSKY_ROOT_DIR=${INST_ROOT}/SIERPINSKY_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${SIERPINSKY_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${SIERPINSKY_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${SIERPINSKY_ROOT_DIR}/bin/salome:${SIERPINSKY_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ SIERPINSKY_src ------
-export SIERPINSKY_SRC_DIR=${INST_ROOT}/SIERPINSKY_SRC_6.5.0
-##
-#------ YACS ------
-export YACS_ROOT_DIR=${INST_ROOT}/YACS_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${YACS_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${YACS_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${YACS_ROOT_DIR}/bin/salome:${YACS_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ YACS_src ------
-export YACS_SRC_DIR=${INST_ROOT}/YACS_SRC_6.5.0
-##
-#------ YACSGEN ------
-export YACSGEN_ROOT_DIR=${INST_ROOT}/YACSGEN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PYTHONPATH ${YACSGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages
-  fi
-fi
-##
-#------ YACSGEN_src ------
-export YACSGEN_SRC_DIR=${INST_ROOT}/YACSGEN_SRC_6.5.0
-##
-#------ JOBMANAGER ------
-export JOBMANAGER_ROOT_DIR=${INST_ROOT}/JOBMANAGER_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${JOBMANAGER_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${JOBMANAGER_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${JOBMANAGER_ROOT_DIR}/bin/salome:${JOBMANAGER_ROOT_DIR}/lib/salome:${JOBMANAGER_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ JOBMANAGER_src ------
-export JOBMANAGER_SRC_DIR=${INST_ROOT}/JOBMANAGER_SRC_6.5.0
-##
-#------ SAMPLES_src ------
-export DATA_DIR=${INST_ROOT}/SAMPLES_SRC_6.5.0
-##
-#------ TUTORIAL_src ------
-##
-#------ HOMARD ------
-export HOMARD_ROOT_DIR=${INST_ROOT}/HOMARD_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${HOMARD_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${HOMARD_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HOMARD_ROOT_DIR}/bin/salome:${HOMARD_ROOT_DIR}/lib/salome:${HOMARD_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HOMARD_src ------
-export HOMARD_SRC_DIR=${INST_ROOT}/HOMARD_SRC_6.5.0
-##
-#------ xdata ------ 
-export XDATAROOT=${INST_ROOT}/xdata-0.9.3
-exportp PATH ${XDATAROOT}/bin
-exportp PYTHONPATH ${XDATAROOT}/lib/python${PYTHON_VERSION}/site-packages/xdata
-##
-#------ xdata_src ------
-# nothing to do
-##
-#------ HXX2SALOME ------
-export HXX2SALOME_ROOT_DIR=${INST_ROOT}/HXX2SALOME_6.5.0/bin
-exportp PATH ${HXX2SALOME_ROOT_DIR}
-##
-#------ HXX2SALOME_src ------
-# nothing to do
-##
-#------ HXX2SALOMEDOC ------
-#nothing to do
-##
-#------ HXX2SALOMEDOC_src ------
-# nothing to do
-##
-#------ DOCUMENTATION_src ------
-#nothing to do
-##
diff --git a/scripts/env_products.csh b/scripts/env_products.csh
deleted file mode 100644 (file)
index 6bc72dd..0000000
+++ /dev/null
@@ -1,815 +0,0 @@
-
-###########################################################################
-# Aliases setenva and setenvp are used to append/prepend correspondingly 
-# one directory or a set of directories separated by semicolon symbol (':')
-# to the environment variables like PATH, LD_LIBRARY_PATH, PYTHONPATH,
-# LD_RUN_PATH etc. 
-# The main purpose is to replace default setenv command behavior:
-# setenva, setenvp also remove duplicated entries, shortening in that way
-# the environment variables.
-# If some directory being added is already included into the variable
-# nothing is done for it.
-# Note, that these aliases work some slower that setenv command itself.
-#
-#### cleandup ###
-# appends/prepends set of directories (second parameter) 
-# to the another set of directories (first parameter) and
-# removes duplicated entries;
-# the third parameter defines the mode: 0 - append, 1 - prepend
-alias cleandup "echo \!:1 \!:2 | awk -v dir=\!:3         \\
-'"'{ na = split($2,a,":");                               \\
-     k1=0;                                               \\
-     bbb[k1++]="";                                       \\
-     ccc[""];                                            \\
-     if($1 != "<empty>") {                               \\
-       nb = split($1,b,":");                             \\
-       for(i=1;i<=nb;i++) {                              \\
-         if(!(b[i] in ccc) ) {                           \\
-          ccc[b[i]];                                    \\
-           bbb[k1++]=b[i];                               \\
-        };                                              \\
-       };                                                \\
-     };                                                  \\
-     k2=0;                                               \\
-     aaa[k2++]="";                                       \\
-     for(i=1;i<=na;i++) {                                \\
-       if(!(a[i] in ccc)) {                              \\
-         ccc[a[i]];                                      \\
-         aaa[k2++]=a[i];                                 \\
-       };                                                \\
-     };                                                  \\
-     ORS=":";                                            \\
-     if(dir) {                                           \\
-       for(i=1;i<k2;i++) {                               \\
-         print aaa[i];                                   \\
-       }                                                 \\
-       for(i=1;i<k1;i++) {                               \\
-         print bbb[i];                                   \\
-       }                                                 \\
-     }                                                   \\
-     else {                                              \\
-       for(i=1;i<k1;i++) {                               \\
-         print bbb[i];                                   \\
-       }                                                 \\
-       for(i=1;i<k2;i++) {                               \\
-         print aaa[i];                                   \\
-       }                                                 \\
-     }                                                   \\
-  }'"' | sed -e 's/\(.*\):/\1/g'"
-### setenva ###
-# appends directory or set of directories, separated by ':' (second parameter)
-# to the variable (first parameter)
-alias setenva 'set a=\!:1 ; set b=\!:2 ;  \
-               set c=`printenv $a` ;      \
-               set b=`cleandup $c $b 0` ; \
-               setenv $a $b ;             \
-               unset a, b, c'
-
-### setenvp ###
-# prepends directory or set of directories, separated by ':' (second parameter)
-# to the variable (first parameter)
-alias setenvp 'set a=\!:1 ; set b=\!:2 ;  \
-               set c=`printenv $a` ;      \
-               set b=`cleandup $c $b 1` ; \
-               setenv $a $b ;             \
-               unset a, b, c'
-###########################################################################
-
-#------ setting initial PATH ------
-if (! ($?PATH) ) then
-  setenv PATH
-endif
-
-#------ setting initial LD_LIBRARY_PATH ------
-if (! ($?LD_LIBRARY_PATH) ) then
-  setenv LD_LIBRARY_PATH
-endif
-
-#------ setting initial LD_RUN_PATH ------
-if (! ($?LD_RUN_PATH) ) then
-  setenv LD_RUN_PATH
-endif
-
-#------ setting initial PYTHONPATH ------
-if (! ($?PYTHONPATH) ) then
-  setenv PYTHONPATH
-endif
-
-#------ setting initial TCLLIBPATH ------
-if (! ($?TCLLIBPATH) ) then
-  setenv TCLLIBPATH
-endif
-
-#------ Setting products installation directory ------
-setenv INST_ROOT /home/siman/salome_6.5.0
-
-#------ Environment switch: 0 for SALOME building, 1 for SALOME launching ------
-setenv ENV_FOR_LAUNCH 1
-
-#------ License activation ------
-setenv LICENSE_FILE /product/distene/dlim8.var.csh
-
-if ( -e ${LICENSE_FILE} ) then
-setenv SIMULOGD_LICENSE_FILE 29029@soleil
-source ${LICENSE_FILE}
-endif
-
-#------ tcltk ------
-setenv TCLHOME ${INST_ROOT}/tcltk-8.5.8
-setenvp PATH ${TCLHOME}/bin
-setenvp LD_LIBRARY_PATH ${TCLHOME}/lib
-setenv TCLLIBPATH "${TCLHOME}/lib ${TCLHOME}/lib/tcl8.5 ${TCLHOME}/lib/tk8.5"
-##
-## #------ tcltk_src ------
-## # nothing to do
-## ##
-#------ Python ------
-setenv PYTHONROOT ${INST_ROOT}/Python-2.6.6
-setenv PYTHONHOME $PYTHONROOT
-setenvp PATH ${PYTHONROOT}/bin
-setenvp LD_LIBRARY_PATH ${PYTHONROOT}/lib
-setenv PYTHON_VERSION 2.6
-setenv PYTHON_INCLUDE ${PYTHONROOT}/include/python${PYTHON_VERSION}
-setenvp PYTHONPATH ${PYTHONROOT}/lib/python${PYTHON_VERSION}
-##
-## #------ Python_src ------
-## # nothing to do
-## ##
-#------ Qt ------
-setenv QTDIR ${INST_ROOT}/qt-4.6.3
-setenvp PATH ${QTDIR}/bin 
-setenvp LD_LIBRARY_PATH ${QTDIR}/lib
-setenv QT_PLUGIN_PATH ${QTDIR}/plugins
-##
-## #------ Qt_src ------
-## # nothing to do
-## ##
-#------ Sip ------
-setenv SIPDIR ${INST_ROOT}/sip-4.13.2
-setenvp PATH ${SIPDIR}/bin
-setenvp PYTHONPATH ${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages
-setenvp LD_LIBRARY_PATH ${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages
-##
-## #------ Sip_src ------
-## # nothing to do
-## ##
-#------ PyQt ------
-setenv PYQTDIR ${INST_ROOT}/PyQt-4.9.1
-setenv PYQT_SIPS ${PYQTDIR}/sip
-setenvp PATH ${PYQTDIR}/bin
-setenvp PYTHONPATH ${PYQTDIR}:${PYQTDIR}/PyQt4
-setenvp LD_LIBRARY_PATH ${PYQTDIR}/PyQt4
-##
-## #------ PyQt_src ------
-## # nothing to do
-## ##
-#------ QScintilla ------
-setenv QSCINTILLA_DIR ${INST_ROOT}/QScintilla-2.6.1
-setenvp LD_LIBRARY_PATH ${QSCINTILLA_DIR}/lib
-##
-## #------ QScintilla_src ------
-## # nothing to do
-## ##
-#------ boost ------ 
-setenv BOOSTDIR ${INST_ROOT}/boost-1.49.0
-setenvp LD_LIBRARY_PATH ${BOOSTDIR}/lib
-setenvp PATH ${BOOSTDIR}/include
-##
-## #------ boost_src ------
-## # nothing to do
-## ##
-#------ Swig ------ 
-setenv SWIG_ROOT ${INST_ROOT}/swig-1.3.40
-setenvp PATH ${SWIG_ROOT}/bin
-setenv SWIG_LIB ${SWIG_ROOT}/share/swig/1.3.40
-##
-## #------ Swig_src ------
-## # nothing to do
-## ##
-#------ freetype ------
-setenv FREETYPEDIR ${INST_ROOT}/freetype-2.3.7
-setenvp LD_LIBRARY_PATH ${FREETYPEDIR}/lib
-##
-## #------ freetype_src ------
-## # nothing to do
-## ##
-#------ ftgl ------
-setenv FTGLDIR ${INST_ROOT}/ftgl-2.1.2
-setenvp PATH ${FTGLDIR}/bin 
-setenvp LD_LIBRARY_PATH ${FTGLDIR}/lib
-##
-## #------ ftgl_src ------
-## # nothing to do
-## ##
-#------ freeimage ------
-setenv FREEIMAGEDIR ${INST_ROOT}/freeimage-3.14.1
-setenvp PATH ${FREEIMAGEDIR}/bin 
-setenvp LD_LIBRARY_PATH ${FREEIMAGEDIR}/lib
-##
-## #------ freeimage_src ------
-## # nothing to do
-## ##
-#------ cmake ------
-setenv CMAKEHOME ${INST_ROOT}/cmake-2.8.7
-setenvp PATH ${CMAKEHOME}/bin
-##
-## #------ cmake_src ------
-## # nothing to do
-## ##
-#------ gl2ps ------
-setenv GL2PSHOME ${INST_ROOT}/gl2ps-1.3.5
-setenvp PATH ${GL2PSHOME}/bin 
-setenvp LD_LIBRARY_PATH ${GL2PSHOME}/lib
-##
-## #------ gl2ps_src ------
-## # nothing to do
-## ##
-#------ tbb ------
-setenv TBBHOME ${INST_ROOT}/tbb30_018oss
-setenvp PATH ${TBBHOME}/bin/intel64/cc4.1.0_libc2.4_kernel2.6.16.21 
-setenvp LD_LIBRARY_PATH ${TBBHOME}/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21
-##
-## #------ tbb_src ------
-## # nothing to do
-## ##
-#------ OpenCascade ------
-setenv CASROOT ${INST_ROOT}/OCCT-6.5.3
-setenvp PATH ${CASROOT}/bin
-setenvp LD_LIBRARY_PATH ${CASROOT}/lib:${CASROOT}/lin/lib
-# Variable for Foundation Classes : 
-setenv CSF_UnitsLexicon ${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
-setenv CSF_UnitsDefinition ${CASROOT}/src/UnitsAPI/Units.dat 
-# Variable for DataExchange : 
-setenv CSF_SHMessage ${CASROOT}/src/SHMessage
-setenv CSF_XSMessage ${CASROOT}/src/XSMessage 
-# Variable for Font : 
-setenv CSF_MDTVFontDirectory ${CASROOT}/src/FontMFT 
-setenv CSF_MDTVTexturesDirectory ${CASROOT}/src/Textures 
-# Activation of OCCT Kernel multithreading :
-setenv MMGT_REENTRANT 1
-##
-## #------ OpenCascade_src ------
-## # nothing to do
-## ##
-#------ Qwt ------
-setenv QWTHOME ${INST_ROOT}/qwt-5.2.1
-setenvp LD_LIBRARY_PATH ${QWTHOME}/lib 
-##
-## #------ Qwt_src ------
-## # nothing to do
-## ##
-#------ OmniORB ------
-setenv OMNIORBDIR ${INST_ROOT}/omniORB-4.1.6
-setenv OMNIORB_CONFIG ${OMNIORBDIR}/.omniORB.cfg
-setenvp PYTHONPATH ${OMNIORBDIR}/lib:${OMNIORBDIR}/lib/python${PYTHON_VERSION}/site-packages
-setenvp PATH $OMNIORBDIR/bin
-setenvp LD_LIBRARY_PATH $OMNIORBDIR/lib 
-##
-## #------ OmniORB_src ------
-## # nothing to do
-## ##
-#------ Hdf5 ------
-setenv HDF5HOME ${INST_ROOT}/hdf5-1.8.8
-setenvp PATH ${HDF5HOME}/bin
-setenvp LD_LIBRARY_PATH ${HDF5HOME}/lib
-##
-## #------ Hdf5_src ------
-## # nothing to do
-## ##
-#------ cgnslib ------
-setenv CGNSHOME ${INST_ROOT}/cgnslib-3.1.3
-setenvp PATH ${CGNSHOME}/bin
-setenvp LD_LIBRARY_PATH ${CGNSHOME}/lib
-##
-## #------ cgnslib_src ------
-## # nothing to do
-## ##
-#------ Med ------
-setenv MED3HOME ${INST_ROOT}/med-3.0.5
-setenvp PATH ${MED3HOME}/bin
-setenvp LD_LIBRARY_PATH ${MED3HOME}/lib
-##
-## #------ Med_src ------
-## # nothing to do
-## ##
-#------ Metis ------ 
-setenv METISDIR ${INST_ROOT}/metis-4.0
-##
-## #------ Metis_src ------
-## # nothing to do
-## ##
-#------ Scotch ------ 
-setenv SCOTCHDIR ${INST_ROOT}/scotch-5.1.11
-##
-## #------ Scotch_src ------
-## # nothing to do
-## ##
-#------ ParaView ------
-setenv PVHOME ${INST_ROOT}/ParaView-3.14.0
-setenvp PATH ${PVHOME}/bin
-setenvp LD_LIBRARY_PATH ${PVHOME}/lib/paraview-3.14
-setenvp PYTHONPATH ${PVHOME}/lib/paraview-3.14:${PVHOME}/lib/paraview-3.14/site-packages:${PVHOME}/lib/paraview-3.14/site-packages/paraview
-setenv VTK_DIR ${PVHOME}/lib/paraview-3.14
-setenv PV_PLUGIN_PATH ${PVHOME}/lib/paraview-3.14
-##
-## #------ ParaView_src ------
-## # nothing to do
-## ##
-#------ numpy ------
-setenvp PYTHONPATH ${INST_ROOT}/numpy-1.5.1/lib/python${PYTHON_VERSION}/site-packages
-setenvp PATH ${INST_ROOT}/numpy-1.5.1/bin
-setenvp LD_LIBRARY_PATH ${INST_ROOT}/numpy-1.5.1/lib
-##
-## #------ numpy_src ------
-## # nothing to do
-## ##
-#------ libBatch ------ 
-setenv LIBBATCH_ROOT_DIR ${INST_ROOT}/libBatch-1.5.0
-setenvp LD_LIBRARY_PATH ${LIBBATCH_ROOT_DIR}/lib
-setenvp PYTHONPATH ${LIBBATCH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages
-##
-## #------ libBatch_src ------
-## # nothing to do
-## ##
-#------ expat ------
-setenv EXPAT_ROOT ${INST_ROOT}/expat-2.0.1
-setenvp PATH ${EXPAT_ROOT}/bin
-setenvp LD_LIBRARY_PATH ${EXPAT_ROOT}/lib
-##
-## #------ expat_src ------
-## # nothing to do
-## ##
-#------ Graphviz ------
-setenv GRAPHVIZHOME ${INST_ROOT}/graphviz-2.28.0
-setenvp PATH ${GRAPHVIZHOME}/bin
-setenvp LD_LIBRARY_PATH ${GRAPHVIZHOME}/lib:${GRAPHVIZHOME}/lib/graphviz
-##
-## #------ Graphviz_src ------
-## # nothing to do
-## ##
-#------ Doxygen ------
-setenvp PATH ${INST_ROOT}/doxygen-1.8.0/bin
-##
-## #------ Doxygen_src ------
-## # nothing to do
-## ##
-#------ docutils ------
-setenvp PYTHONPATH ${INST_ROOT}/docutils-0.8.1/lib/python${PYTHON_VERSION}/site-packages
-setenvp PATH ${INST_ROOT}/docutils-0.8.1/bin
-##
-## #------ docutils_src ------
-## # nothing to do
-## ##
-#------ Sphinx ------
-setenvp PYTHONPATH ${INST_ROOT}/Sphinx-1.1.3/lib/python${PYTHON_VERSION}/site-packages
-setenvp PATH ${INST_ROOT}/Sphinx-1.1.3/bin
-##
-## #------ Sphinx_src ------
-## # nothing to do
-## ##
-#------ netgen ------
-setenv NETGENHOME ${INST_ROOT}/netgen-4.9.13
-setenvp LD_LIBRARY_PATH ${NETGENHOME}/lib
-##
-## #------ netgen_src ------
-## # nothing to do
-## ##
-#------ DISTENE ------
-setenv DISTENE_HOME ${INST_ROOT}/DISTENE
-setenv BLSURFHOME ${DISTENE_HOME}/Tools/BLSurf-3.1_64
-setenv HEXOTICHOME ${DISTENE_HOME}/Tools/Hexotic-V1.0_64
-setenvp LD_LIBRARY_PATH ${BLSURFHOME}/lib 
-setenvp PATH ${HEXOTICHOME}/bin:${DISTENE_HOME}/Tools/TetMesh-GHS3D4.1_64:${DISTENE_HOME}/Tools/TetMesh-GHS3D4.2_64
-##
-## #------ DISTENE_src ------
-## # nothing to do
-## ##
-#------ homard ------
-setenv homard_HOME ${INST_ROOT}/homard-10.4
-setenvp PATH ${homard_HOME}/HOMARD_V10.4_64
-##
-## #------ homard_src ------
-## # nothing to do
-## ##
-#------ libxml2 ------ 
-setenv LIBXML_DIR ${INST_ROOT}/libxml2-2.7.8
-setenvp PATH ${LIBXML_DIR}/bin
-setenvp LD_LIBRARY_PATH ${LIBXML_DIR}/lib
-##
-## #------ libxml2_src ------
-## # nothing to do
-## ##
-#------ KERNEL ------
-setenv KERNEL_ROOT_DIR ${INST_ROOT}/KERNEL_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${KERNEL_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${KERNEL_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${KERNEL_ROOT_DIR}/bin/salome:${KERNEL_ROOT_DIR}/lib/salome:${KERNEL_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ KERNEL_src ------
-setenv KERNEL_SRC_DIR ${INST_ROOT}/KERNEL_SRC_6.5.0
-##
-#------ GUI ------
-setenv GUI_ROOT_DIR ${INST_ROOT}/GUI_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${GUI_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${GUI_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${GUI_ROOT_DIR}/bin/salome:${GUI_ROOT_DIR}/lib/salome:${GUI_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    setenv VTK_AUTOLOAD_PATH ${GUI_ROOT_DIR}/lib/paraview
-  endif
-endif
-##
-#------ GUI_src ------
-setenv GUI_SRC_DIR ${INST_ROOT}/GUI_SRC_6.5.0
-##
-#------ GEOM ------
-setenv GEOM_ROOT_DIR ${INST_ROOT}/GEOM_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${GEOM_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${GEOM_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${GEOM_ROOT_DIR}/bin/salome:${GEOM_ROOT_DIR}/lib/salome:${GEOM_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ GEOM_src ------
-setenv GEOM_SRC_DIR ${INST_ROOT}/GEOM_SRC_6.5.0
-##
-#------ MED ------
-setenv MED_ROOT_DIR ${INST_ROOT}/MED_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${MED_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${MED_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${MED_ROOT_DIR}/bin/salome:${MED_ROOT_DIR}/lib/salome:${MED_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    setenv AM2CMAKE_FORCE_GENERATION 1
-  endif
-endif
-##
-#------ MED_src ------
-setenv MED_SRC_DIR ${INST_ROOT}/MED_SRC_6.5.0
-##
-#------ SMESH ------
-setenv SMESH_ROOT_DIR ${INST_ROOT}/SMESH_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${SMESH_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${SMESH_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${SMESH_ROOT_DIR}/bin/salome:${SMESH_ROOT_DIR}/lib/salome:${SMESH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ SMESH_src ------
-setenv SMESH_SRC_DIR ${INST_ROOT}/SMESH_SRC_6.5.0
-##
-#------ VISU ------
-setenv VISU_ROOT_DIR ${INST_ROOT}/VISU_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${VISU_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${VISU_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${VISU_ROOT_DIR}/bin/salome:${VISU_ROOT_DIR}/lib/salome:${VISU_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ VISU_src ------
-setenv VISU_SRC_DIR ${INST_ROOT}/VISU_SRC_6.5.0
-##
-#------ PARAVIS ------
-setenv PARAVIS_ROOT_DIR ${INST_ROOT}/PARAVIS_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${PARAVIS_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${PARAVIS_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${PARAVIS_ROOT_DIR}/bin/salome:${PARAVIS_ROOT_DIR}/lib/salome:${PARAVIS_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    setenv PV_PLUGIN_PATH ${PARAVIS_ROOT_DIR}/lib/paraview:${PV_PLUGIN_PATH}
-  endif
-endif
-##
-#------ PARAVIS_src ------
-setenv PARAVIS_SRC_DIR ${INST_ROOT}/PARAVIS_SRC_6.5.0
-setenv ACCEPT_PARAVIS_WARNINGS 1
-##
-#------ HEXABLOCK ------
-setenv HEXABLOCK_ROOT_DIR ${INST_ROOT}/HEXABLOCK_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${HEXABLOCK_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${HEXABLOCK_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HEXABLOCK_ROOT_DIR}/bin/salome:${HEXABLOCK_ROOT_DIR}/lib/salome:${HEXABLOCK_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HEXABLOCK_src ------
-setenv HEXABLOCK_SRC_DIR ${INST_ROOT}/HEXABLOCK_SRC_6.5.0
-##
-#------ HEXABLOCKPLUGIN ------
-setenv HEXABLOCKPLUGIN_ROOT_DIR ${INST_ROOT}/HEXABLOCKPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp LD_LIBRARY_PATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome:${HEXABLOCKPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HEXABLOCKPLUGIN_src ------
-setenv HEXABLOCKPLUGIN_SRC_DIR ${INST_ROOT}/HEXABLOCKPLUGIN_SRC_6.5.0
-##
-#------ NETGENPLUGIN ------
-setenv NETGENPLUGIN_ROOT_DIR ${INST_ROOT}/NETGENPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp LD_LIBRARY_PATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome:${NETGENPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ NETGENPLUGIN_src ------
-setenv NETGENPLUGIN_SRC_DIR ${INST_ROOT}/NETGENPLUGIN_SRC_6.5.0
-##
-#------ GHS3DPLUGIN ------
-setenv GHS3DPLUGIN_ROOT_DIR ${INST_ROOT}/GHS3DPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp LD_LIBRARY_PATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome:${GHS3DPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ GHS3DPLUGIN_src ------
-setenv GHS3DPLUGIN_SRC_DIR ${INST_ROOT}/GHS3DPLUGIN_SRC_6.5.0
-##
-#------ GHS3DPRLPLUGIN ------
-setenv GHS3DPRLPLUGIN_ROOT_DIR ${INST_ROOT}/GHS3DPRLPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome:${GHS3DPRLPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ GHS3DPRLPLUGIN_src ------
-setenv GHS3DPRLPLUGIN_SRC_DIR ${INST_ROOT}/GHS3DPRLPLUGIN_SRC_6.5.0
-##
-#------ BLSURFPLUGIN ------
-setenv BLSURFPLUGIN_ROOT_DIR ${INST_ROOT}/BLSURFPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${BLSURFPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome:${BLSURFPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ BLSURFPLUGIN_src ------
-setenv BLSURFPLUGIN_SRC_DIR ${INST_ROOT}/BLSURFPLUGIN_SRC_6.5.0
-##
-#------ HexoticPLUGIN ------
-setenv HexoticPLUGIN_ROOT_DIR ${INST_ROOT}/HexoticPLUGIN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${HexoticPLUGIN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome:${HexoticPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HexoticPLUGIN_src ------
-setenv HexoticPLUGIN_SRC_DIR ${INST_ROOT}/HexoticPLUGIN_SRC_6.5.0
-##
-#------ COMPONENT ------
-setenv COMPONENT_ROOT_DIR ${INST_ROOT}/COMPONENT_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${COMPONENT_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${COMPONENT_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${COMPONENT_ROOT_DIR}/bin/salome:${COMPONENT_ROOT_DIR}/lib/salome:${COMPONENT_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ COMPONENT_src ------
-setenv COMPONENT_SRC_DIR ${INST_ROOT}/COMPONENT_SRC_6.5.0
-##
-#------ PYCALCULATOR ------
-setenv PYCALCULATOR_ROOT_DIR ${INST_ROOT}/PYCALCULATOR_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${PYCALCULATOR_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${PYCALCULATOR_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${PYCALCULATOR_ROOT_DIR}/bin/salome:${PYCALCULATOR_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ PYCALCULATOR_src ------
-setenv PYCALCULATOR_SRC_DIR ${INST_ROOT}/PYCALCULATOR_SRC_6.5.0
-##
-#------ CALCULATOR ------
-setenv CALCULATOR_ROOT_DIR ${INST_ROOT}/CALCULATOR_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${CALCULATOR_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${CALCULATOR_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${CALCULATOR_ROOT_DIR}/bin/salome:${CALCULATOR_ROOT_DIR}/lib/salome:${CALCULATOR_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ CALCULATOR_src ------
-setenv CALCULATOR_SRC_DIR ${INST_ROOT}/CALCULATOR_SRC_6.5.0
-##
-#------ HELLO ------
-setenv HELLO_ROOT_DIR ${INST_ROOT}/HELLO_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${HELLO_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${HELLO_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HELLO_ROOT_DIR}/bin/salome:${HELLO_ROOT_DIR}/lib/salome:${HELLO_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HELLO_src ------
-setenv HELLO_SRC_DIR ${INST_ROOT}/HELLO_SRC_6.5.0
-##
-#------ PYHELLO ------
-setenv PYHELLO_ROOT_DIR ${INST_ROOT}/PYHELLO_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${PYHELLO_ROOT_DIR}/bin/salome
-    setenvp PYTHONPATH ${PYHELLO_ROOT_DIR}/bin/salome:${PYHELLO_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ PYHELLO_src ------
-setenv PYHELLO_SRC_DIR ${INST_ROOT}/PYHELLO_SRC_6.5.0
-##
-#------ ATOMGEN ------
-setenv ATOMGEN_ROOT_DIR ${INST_ROOT}/ATOMGEN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${ATOMGEN_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${ATOMGEN_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${ATOMGEN_ROOT_DIR}/bin/salome:${ATOMGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ ATOMGEN_src ------
-setenv ATOMGEN_SRC_DIR ${INST_ROOT}/ATOMGEN_SRC_6.5.0
-##
-#------ ATOMSOLV ------
-setenv ATOMSOLV_ROOT_DIR ${INST_ROOT}/ATOMSOLV_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${ATOMSOLV_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${ATOMSOLV_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${ATOMSOLV_ROOT_DIR}/bin/salome:${ATOMSOLV_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ ATOMSOLV_src ------
-setenv ATOMSOLV_SRC_DIR ${INST_ROOT}/ATOMSOLV_SRC_6.5.0
-##
-#------ ATOMIC ------
-setenv ATOMIC_ROOT_DIR ${INST_ROOT}/ATOMIC_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${ATOMIC_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${ATOMIC_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${ATOMIC_ROOT_DIR}/bin/salome:${ATOMIC_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ ATOMIC_src ------
-setenv ATOMIC_SRC_DIR ${INST_ROOT}/ATOMIC_SRC_6.5.0
-##
-#------ LIGHT ------
-setenv LIGHT_ROOT_DIR ${INST_ROOT}/LIGHT_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp LD_LIBRARY_PATH ${LIGHT_ROOT_DIR}/lib/salome
-  endif
-endif
-##
-#------ LIGHT_src ------
-setenv LIGHT_SRC_DIR ${INST_ROOT}/LIGHT_SRC_6.5.0
-##
-#------ PYLIGHT ------
-setenv PYLIGHT_ROOT_DIR ${INST_ROOT}/PYLIGHT_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${PYLIGHT_ROOT_DIR}/bin/salome
-    setenvp PYTHONPATH ${PYLIGHT_ROOT_DIR}/bin/salome
-  endif
-endif
-##
-#------ PYLIGHT_src ------
-setenv PYLIGHT_SRC_DIR ${INST_ROOT}/PYLIGHT_SRC_6.5.0
-##
-#------ RANDOMIZER ------
-setenv RANDOMIZER_ROOT_DIR ${INST_ROOT}/RANDOMIZER_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${RANDOMIZER_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${RANDOMIZER_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${RANDOMIZER_ROOT_DIR}/bin/salome:${RANDOMIZER_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ RANDOMIZER_src ------
-setenv RANDOMIZER_SRC_DIR ${INST_ROOT}/RANDOMIZER_SRC_6.5.0
-##
-#------ SIERPINSKY ------
-setenv SIERPINSKY_ROOT_DIR ${INST_ROOT}/SIERPINSKY_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${SIERPINSKY_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${SIERPINSKY_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${SIERPINSKY_ROOT_DIR}/bin/salome:${SIERPINSKY_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ SIERPINSKY_src ------
-setenv SIERPINSKY_SRC_DIR ${INST_ROOT}/SIERPINSKY_SRC_6.5.0
-##
-#------ YACS ------
-setenv YACS_ROOT_DIR ${INST_ROOT}/YACS_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${YACS_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${YACS_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${YACS_ROOT_DIR}/bin/salome:${YACS_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ YACS_src ------
-setenv YACS_SRC_DIR ${INST_ROOT}/YACS_SRC_6.5.0
-##
-#------ YACSGEN ------
-setenv YACSGEN_ROOT_DIR ${INST_ROOT}/YACSGEN_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PYTHONPATH ${YACSGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages
-  endif
-endif
-##
-#------ YACSGEN_src ------
-setenv YACSGEN_SRC_DIR ${INST_ROOT}/YACSGEN_SRC_6.5.0
-##
-#------ JOBMANAGER ------
-setenv JOBMANAGER_ROOT_DIR ${INST_ROOT}/JOBMANAGER_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${JOBMANAGER_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${JOBMANAGER_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${JOBMANAGER_ROOT_DIR}/bin/salome:${JOBMANAGER_ROOT_DIR}/lib/salome:${JOBMANAGER_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ JOBMANAGER_src ------
-setenv JOBMANAGER_SRC_DIR ${INST_ROOT}/JOBMANAGER_SRC_6.5.0
-##
-#------ SAMPLES_src ------
-setenv DATA_DIR ${INST_ROOT}/SAMPLES_SRC_6.5.0
-##
-#------ TUTORIAL_src ------
-##
-#------ HOMARD ------
-setenv HOMARD_ROOT_DIR ${INST_ROOT}/HOMARD_6.5.0
-if ( ${?ENV_FOR_LAUNCH} ) then
-  if ( "${ENV_FOR_LAUNCH}" == "1" ) then
-    setenvp PATH ${HOMARD_ROOT_DIR}/bin/salome
-    setenvp LD_LIBRARY_PATH ${HOMARD_ROOT_DIR}/lib/salome
-    setenvp PYTHONPATH ${HOMARD_ROOT_DIR}/bin/salome:${HOMARD_ROOT_DIR}/lib/salome:${HOMARD_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  endif
-endif
-##
-#------ HOMARD_src ------
-setenv HOMARD_SRC_DIR ${INST_ROOT}/HOMARD_SRC_6.5.0
-##
-#------ xdata ------ 
-setenv XDATAROOT ${INST_ROOT}/xdata-0.9.3
-setenvp PATH ${XDATAROOT}/bin
-setenvp PYTHONPATH ${XDATAROOT}/lib/python${PYTHON_VERSION}/site-packages/xdata
-##
-#------ xdata_src ------
-# nothing to do
-##
-#------ HXX2SALOME ------
-setenv HXX2SALOME_ROOT_DIR ${INST_ROOT}/HXX2SALOME_6.5.0/bin
-setenvp PATH ${HXX2SALOME_ROOT_DIR}
-##
-#------ HXX2SALOME_src ------
-# nothing to do
-##
-#------ HXX2SALOMEDOC ------
-#nothing to do
-##
-#------ HXX2SALOMEDOC_src ------
-# nothing to do
-##
-#------ DOCUMENTATION_src ------
-#nothing to do
-##
diff --git a/scripts/env_products.sh b/scripts/env_products.sh
deleted file mode 100644 (file)
index d2003bd..0000000
+++ /dev/null
@@ -1,793 +0,0 @@
-##########################################################################
-# Functions exporta and exportp are used to append/prepend correspondingly 
-# one directory or a set of directories separated by semicolon symbol (':')
-# to the environment variables like PATH, LD_LIBRARY_PATH, PYTHONPATH,
-# LD_RUN_PATH etc. 
-# The main purpose is to replace default setenv command behavior:
-# exporta, exportp also remove duplicated entries, shortening in that way
-# the environment variables.
-# If some directory being added is already included into the variable
-# nothing is done for it.
-# Note, that these functions work some slower that setenv command itself.
-#
-#### cleandup ###
-# appends/prepends set of directories (second parameter) 
-# to the another set of directories (first parameter) and
-# removes duplicated entries;
-# the third parameter defines the mode: 0 - append, 1 - prepend
-cleandup() {
-out_var=`echo $1 $2 | awk -v dir=$3 '{                   \
-     na = split($2,a,":");                               \
-     k1=0;                                               \
-     bbb[k1++]="";                                       \
-     ccc[""];                                            \
-     if($1 != "<empty>") {                               \
-       nb = split($1,b,":");                             \
-       for(i=1;i<=nb;i++) {                              \
-         if(!(b[i] in ccc) ) {                           \
-          ccc[b[i]];                                    \
-           bbb[k1++]=b[i];                               \
-        };                                              \
-       };                                                \
-     };                                                  \
-     k2=0;                                               \
-     aaa[k2++]="";                                       \
-     for(i=1;i<=na;i++) {                                \
-       if(!(a[i] in ccc)) {                              \
-         ccc[a[i]];                                      \
-         aaa[k2++]=a[i];                                 \
-       };                                                \
-     };                                                  \
-     ORS=":";                                            \
-     if(dir) {                                           \
-       for(i=1;i<k2;i++) {                               \
-         print aaa[i];                                   \
-       }                                                 \
-       for(i=1;i<k1;i++) {                               \
-         print bbb[i];                                   \
-       }                                                 \
-     }                                                   \
-     else {                                              \
-       for(i=1;i<k1;i++) {                               \
-         print bbb[i];                                   \
-       }                                                 \
-       for(i=1;i<k2;i++) {                               \
-         print aaa[i];                                   \
-       }                                                 \
-     }                                                   \
-   }' | sed -e 's/\(.*\):/\1/g'`
-echo $out_var
-}
-### exporta ###
-# appends directory or set of directories, separated by ':' (second parameter)
-# to the variable (first parameter)
-exporta () { 
-xenv=`printenv $1`
-if [ -z "$xenv" ]; then xenv="<empty>"; fi
-out_var=`cleandup $xenv $2 0`
-export $1=$out_var
-}
-### exportp ###
-# prepends directory or set of directories, separated by ':' (second parameter)
-# to the variable (first parameter)
-exportp () { 
-xenv=`printenv $1`
-if [ -z "$xenv" ]; then xenv="<empty>"; fi
-out_var=`cleandup $xenv $2 1`
-export $1=$out_var
-}
-###########################################################################
-
-#------ Setting products installation directory ------
-export INST_ROOT=/home/siman/salome_6.5.0
-
-#------ 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
-
-if [ -e "${LICENSE_FILE}" ] ; then
-export SIMULOGD_LICENSE_FILE=29029@soleil
-source ${LICENSE_FILE}
-fi
-
-#------ tcltk ------
-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"
-##
-## #------ tcltk_src ------
-## # nothing to do
-## ##
-#------ Python ------
-export PYTHONROOT=${INST_ROOT}/Python-2.6.6
-export PYTHONHOME=$PYTHONROOT
-exportp PATH ${PYTHONROOT}/bin
-exportp LD_LIBRARY_PATH ${PYTHONROOT}/lib
-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
-## ##
-#------ 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
-## ##
-#------ 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
-## ##
-#------ PyQt ------
-export PYQTDIR=${INST_ROOT}/PyQt-4.9.1
-export PYQT_SIPS=${PYQTDIR}/sip
-exportp PATH ${PYQTDIR}/bin
-exportp PYTHONPATH ${PYQTDIR}:${PYQTDIR}/PyQt4
-exportp LD_LIBRARY_PATH ${PYQTDIR}/PyQt4
-##
-## #------ 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
-## ##
-#------ boost ------ 
-export BOOSTDIR=${INST_ROOT}/boost-1.49.0
-exportp LD_LIBRARY_PATH ${BOOSTDIR}/lib
-exportp PATH ${BOOSTDIR}/include
-##
-## #------ 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
-## ##
-#------ freetype ------
-export FREETYPEDIR=${INST_ROOT}/freetype-2.3.7
-exportp LD_LIBRARY_PATH ${FREETYPEDIR}/lib
-##
-## #------ freetype_src ------
-## # nothing to do
-## ##
-#------ ftgl ------
-export FTGLDIR=${INST_ROOT}/ftgl-2.1.2
-exportp PATH ${FTGLDIR}/bin 
-exportp LD_LIBRARY_PATH ${FTGLDIR}/lib
-##
-## #------ ftgl_src ------
-## # nothing to do
-## ##
-#------ freeimage ------
-export FREEIMAGEDIR=${INST_ROOT}/freeimage-3.14.1
-exportp PATH ${FREEIMAGEDIR}/bin 
-exportp LD_LIBRARY_PATH ${FREEIMAGEDIR}/lib
-##
-## #------ freeimage_src ------
-## # nothing to do
-## ##
-#------ cmake ------
-export CMAKEHOME=${INST_ROOT}/cmake-2.8.7
-exportp PATH ${CMAKEHOME}/bin
-##
-## #------ cmake_src ------
-## # nothing to do
-## ##
-#------ gl2ps ------
-export GL2PSHOME=${INST_ROOT}/gl2ps-1.3.5
-exportp PATH ${GL2PSHOME}/bin 
-exportp LD_LIBRARY_PATH ${GL2PSHOME}/lib
-##
-## #------ gl2ps_src ------
-## # nothing to do
-## ##
-#------ tbb ------
-export TBBHOME=${INST_ROOT}/tbb30_018oss
-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
-##
-## #------ tbb_src ------
-## # nothing to do
-## ##
-#------ OpenCascade ------
-export CASROOT=${INST_ROOT}/OCCT-6.5.3
-exportp PATH ${CASROOT}/bin
-exportp LD_LIBRARY_PATH ${CASROOT}/lib:${CASROOT}/lin/lib
-# Variable for Foundation Classes : 
-export CSF_UnitsLexicon=${CASROOT}/src/UnitsAPI/Lexi_Expr.dat 
-export CSF_UnitsDefinition=${CASROOT}/src/UnitsAPI/Units.dat 
-# Variable for DataExchange : 
-export CSF_SHMessage=${CASROOT}/src/SHMessage
-export CSF_XSMessage=${CASROOT}/src/XSMessage 
-# Variable for Font : 
-export CSF_MDTVFontDirectory=${CASROOT}/src/FontMFT 
-export CSF_MDTVTexturesDirectory=${CASROOT}/src/Textures 
-# Activation of OCCT Kernel multithreading :
-export MMGT_REENTRANT=1
-##
-## #------ OpenCascade_src ------
-## # nothing to do
-## ##
-#------ Qwt ------
-export QWTHOME=${INST_ROOT}/qwt-5.2.1
-exportp LD_LIBRARY_PATH ${QWTHOME}/lib 
-##
-## #------ Qwt_src ------
-## # nothing to do
-## ##
-#------ OmniORB ------
-export OMNIORBDIR=${INST_ROOT}/omniORB-4.1.6
-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
-## ##
-#------ Hdf5 ------
-export HDF5HOME=${INST_ROOT}/hdf5-1.8.8
-exportp PATH ${HDF5HOME}/bin
-exportp LD_LIBRARY_PATH ${HDF5HOME}/lib
-##
-## #------ 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
-## ##
-#------ Med ------
-export MED3HOME=${INST_ROOT}/med-3.0.5
-exportp PATH ${MED3HOME}/bin
-exportp LD_LIBRARY_PATH ${MED3HOME}/lib
-##
-## #------ Med_src ------
-## # nothing to do
-## ##
-#------ Metis ------ 
-export METISDIR=${INST_ROOT}/metis-4.0
-##
-## #------ Metis_src ------
-## # nothing to do
-## ##
-#------ Scotch ------ 
-export SCOTCHDIR=${INST_ROOT}/scotch-5.1.11
-##
-## #------ Scotch_src ------
-## # nothing to do
-## ##
-#------ ParaView ------
-export PVHOME=${INST_ROOT}/ParaView-3.14.0
-exportp PATH ${PVHOME}/bin
-exportp LD_LIBRARY_PATH ${PVHOME}/lib/paraview-3.14
-exportp PYTHONPATH ${PVHOME}/lib/paraview-3.14:${PVHOME}/lib/paraview-3.14/site-packages:${PVHOME}/lib/paraview-3.14/site-packages/paraview
-export VTK_DIR=${PVHOME}/lib/paraview-3.14
-export PV_PLUGIN_PATH=${PVHOME}/lib/paraview-3.14
-##
-## #------ 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
-## ##
-#------ 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
-## ##
-#------ 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
-## ##
-#------ Doxygen ------
-exportp PATH ${INST_ROOT}/doxygen-1.8.0/bin
-##
-## #------ 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
-## ##
-#------ 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
-## ##
-#------ netgen ------
-export NETGENHOME=${INST_ROOT}/netgen-4.9.13
-exportp LD_LIBRARY_PATH ${NETGENHOME}/lib
-##
-## #------ 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
-## ##
-#------ homard ------
-export homard_HOME=${INST_ROOT}/homard-10.4
-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
-##
-## #------ libxml2_src ------
-## # nothing to do
-## ##
-#------ KERNEL ------
-export KERNEL_ROOT_DIR=${INST_ROOT}/KERNEL_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${KERNEL_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${KERNEL_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${KERNEL_ROOT_DIR}/bin/salome:${KERNEL_ROOT_DIR}/lib/salome:${KERNEL_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ KERNEL_src ------
-export KERNEL_SRC_DIR=${INST_ROOT}/KERNEL_SRC_6.5.0
-##
-#------ GUI ------
-export GUI_ROOT_DIR=${INST_ROOT}/GUI_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${GUI_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${GUI_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${GUI_ROOT_DIR}/bin/salome:${GUI_ROOT_DIR}/lib/salome:${GUI_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    export VTK_AUTOLOAD_PATH=${GUI_ROOT_DIR}/lib/paraview
-  fi
-fi
-##
-#------ GUI_src ------
-export GUI_SRC_DIR=${INST_ROOT}/GUI_SRC_6.5.0
-##
-#------ GEOM ------
-export GEOM_ROOT_DIR=${INST_ROOT}/GEOM_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${GEOM_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${GEOM_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${GEOM_ROOT_DIR}/bin/salome:${GEOM_ROOT_DIR}/lib/salome:${GEOM_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ GEOM_src ------
-export GEOM_SRC_DIR=${INST_ROOT}/GEOM_SRC_6.5.0
-##
-#------ MED ------
-export MED_ROOT_DIR=${INST_ROOT}/MED_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${MED_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${MED_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${MED_ROOT_DIR}/bin/salome:${MED_ROOT_DIR}/lib/salome:${MED_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    export AM2CMAKE_FORCE_GENERATION=1
-  fi
-fi
-##
-#------ MED_src ------
-export MED_SRC_DIR=${INST_ROOT}/MED_SRC_6.5.0
-##
-#------ SMESH ------
-export SMESH_ROOT_DIR=${INST_ROOT}/SMESH_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${SMESH_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${SMESH_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${SMESH_ROOT_DIR}/bin/salome:${SMESH_ROOT_DIR}/lib/salome:${SMESH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ SMESH_src ------
-export SMESH_SRC_DIR=${INST_ROOT}/SMESH_SRC_6.5.0
-##
-#------ VISU ------
-export VISU_ROOT_DIR=${INST_ROOT}/VISU_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${VISU_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${VISU_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${VISU_ROOT_DIR}/bin/salome:${VISU_ROOT_DIR}/lib/salome:${VISU_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ VISU_src ------
-export VISU_SRC_DIR=${INST_ROOT}/VISU_SRC_6.5.0
-##
-#------ PARAVIS ------
-export PARAVIS_ROOT_DIR=${INST_ROOT}/PARAVIS_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${PARAVIS_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${PARAVIS_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${PARAVIS_ROOT_DIR}/bin/salome:${PARAVIS_ROOT_DIR}/lib/salome:${PARAVIS_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-    export PV_PLUGIN_PATH=${PARAVIS_ROOT_DIR}/lib/paraview:${PV_PLUGIN_PATH}
-  fi
-fi
-##
-#------ PARAVIS_src ------
-export PARAVIS_SRC_DIR=${INST_ROOT}/PARAVIS_SRC_6.5.0
-export ACCEPT_PARAVIS_WARNINGS=1
-##
-#------ HEXABLOCK ------
-export HEXABLOCK_ROOT_DIR=${INST_ROOT}/HEXABLOCK_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${HEXABLOCK_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${HEXABLOCK_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HEXABLOCK_ROOT_DIR}/bin/salome:${HEXABLOCK_ROOT_DIR}/lib/salome:${HEXABLOCK_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HEXABLOCK_src ------
-export HEXABLOCK_SRC_DIR=${INST_ROOT}/HEXABLOCK_SRC_6.5.0
-##
-#------ HEXABLOCKPLUGIN ------
-export HEXABLOCKPLUGIN_ROOT_DIR=${INST_ROOT}/HEXABLOCKPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp LD_LIBRARY_PATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HEXABLOCKPLUGIN_ROOT_DIR}/lib/salome:${HEXABLOCKPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HEXABLOCKPLUGIN_src ------
-export HEXABLOCKPLUGIN_SRC_DIR=${INST_ROOT}/HEXABLOCKPLUGIN_SRC_6.5.0
-##
-#------ NETGENPLUGIN ------
-export NETGENPLUGIN_ROOT_DIR=${INST_ROOT}/NETGENPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp LD_LIBRARY_PATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${NETGENPLUGIN_ROOT_DIR}/lib/salome:${NETGENPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ NETGENPLUGIN_src ------
-export NETGENPLUGIN_SRC_DIR=${INST_ROOT}/NETGENPLUGIN_SRC_6.5.0
-##
-#------ GHS3DPLUGIN ------
-export GHS3DPLUGIN_ROOT_DIR=${INST_ROOT}/GHS3DPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp LD_LIBRARY_PATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${GHS3DPLUGIN_ROOT_DIR}/lib/salome:${GHS3DPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ GHS3DPLUGIN_src ------
-export GHS3DPLUGIN_SRC_DIR=${INST_ROOT}/GHS3DPLUGIN_SRC_6.5.0
-##
-#------ GHS3DPRLPLUGIN ------
-export GHS3DPRLPLUGIN_ROOT_DIR=${INST_ROOT}/GHS3DPRLPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${GHS3DPRLPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome:${GHS3DPRLPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ GHS3DPRLPLUGIN_src ------
-export GHS3DPRLPLUGIN_SRC_DIR=${INST_ROOT}/GHS3DPRLPLUGIN_SRC_6.5.0
-##
-#------ BLSURFPLUGIN ------
-export BLSURFPLUGIN_ROOT_DIR=${INST_ROOT}/BLSURFPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${BLSURFPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${BLSURFPLUGIN_ROOT_DIR}/bin/salome:${BLSURFPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ BLSURFPLUGIN_src ------
-export BLSURFPLUGIN_SRC_DIR=${INST_ROOT}/BLSURFPLUGIN_SRC_6.5.0
-##
-#------ HexoticPLUGIN ------
-export HexoticPLUGIN_ROOT_DIR=${INST_ROOT}/HexoticPLUGIN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${HexoticPLUGIN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HexoticPLUGIN_ROOT_DIR}/bin/salome:${HexoticPLUGIN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HexoticPLUGIN_src ------
-export HexoticPLUGIN_SRC_DIR=${INST_ROOT}/HexoticPLUGIN_SRC_6.5.0
-##
-#------ COMPONENT ------
-export COMPONENT_ROOT_DIR=${INST_ROOT}/COMPONENT_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${COMPONENT_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${COMPONENT_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${COMPONENT_ROOT_DIR}/bin/salome:${COMPONENT_ROOT_DIR}/lib/salome:${COMPONENT_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ COMPONENT_src ------
-export COMPONENT_SRC_DIR=${INST_ROOT}/COMPONENT_SRC_6.5.0
-##
-#------ PYCALCULATOR ------
-export PYCALCULATOR_ROOT_DIR=${INST_ROOT}/PYCALCULATOR_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${PYCALCULATOR_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${PYCALCULATOR_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${PYCALCULATOR_ROOT_DIR}/bin/salome:${PYCALCULATOR_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ PYCALCULATOR_src ------
-export PYCALCULATOR_SRC_DIR=${INST_ROOT}/PYCALCULATOR_SRC_6.5.0
-##
-#------ CALCULATOR ------
-export CALCULATOR_ROOT_DIR=${INST_ROOT}/CALCULATOR_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${CALCULATOR_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${CALCULATOR_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${CALCULATOR_ROOT_DIR}/bin/salome:${CALCULATOR_ROOT_DIR}/lib/salome:${CALCULATOR_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ CALCULATOR_src ------
-export CALCULATOR_SRC_DIR=${INST_ROOT}/CALCULATOR_SRC_6.5.0
-##
-#------ HELLO ------
-export HELLO_ROOT_DIR=${INST_ROOT}/HELLO_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${HELLO_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${HELLO_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HELLO_ROOT_DIR}/bin/salome:${HELLO_ROOT_DIR}/lib/salome:${HELLO_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HELLO_src ------
-export HELLO_SRC_DIR=${INST_ROOT}/HELLO_SRC_6.5.0
-##
-#------ PYHELLO ------
-export PYHELLO_ROOT_DIR=${INST_ROOT}/PYHELLO_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${PYHELLO_ROOT_DIR}/bin/salome
-    exportp PYTHONPATH ${PYHELLO_ROOT_DIR}/bin/salome:${PYHELLO_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ PYHELLO_src ------
-export PYHELLO_SRC_DIR=${INST_ROOT}/PYHELLO_SRC_6.5.0
-##
-#------ ATOMGEN ------
-export ATOMGEN_ROOT_DIR=${INST_ROOT}/ATOMGEN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${ATOMGEN_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${ATOMGEN_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${ATOMGEN_ROOT_DIR}/bin/salome:${ATOMGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ ATOMGEN_src ------
-export ATOMGEN_SRC_DIR=${INST_ROOT}/ATOMGEN_SRC_6.5.0
-##
-#------ ATOMSOLV ------
-export ATOMSOLV_ROOT_DIR=${INST_ROOT}/ATOMSOLV_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${ATOMSOLV_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${ATOMSOLV_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${ATOMSOLV_ROOT_DIR}/bin/salome:${ATOMSOLV_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ ATOMSOLV_src ------
-export ATOMSOLV_SRC_DIR=${INST_ROOT}/ATOMSOLV_SRC_6.5.0
-##
-#------ ATOMIC ------
-export ATOMIC_ROOT_DIR=${INST_ROOT}/ATOMIC_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${ATOMIC_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${ATOMIC_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${ATOMIC_ROOT_DIR}/bin/salome:${ATOMIC_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ ATOMIC_src ------
-export ATOMIC_SRC_DIR=${INST_ROOT}/ATOMIC_SRC_6.5.0
-##
-#------ LIGHT ------
-export LIGHT_ROOT_DIR=${INST_ROOT}/LIGHT_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp LD_LIBRARY_PATH ${LIGHT_ROOT_DIR}/lib/salome
-  fi
-fi
-##
-#------ LIGHT_src ------
-export LIGHT_SRC_DIR=${INST_ROOT}/LIGHT_SRC_6.5.0
-##
-#------ PYLIGHT ------
-export PYLIGHT_ROOT_DIR=${INST_ROOT}/PYLIGHT_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${PYLIGHT_ROOT_DIR}/bin/salome
-    exportp PYTHONPATH ${PYLIGHT_ROOT_DIR}/bin/salome
-  fi
-fi
-##
-#------ PYLIGHT_src ------
-export PYLIGHT_SRC_DIR=${INST_ROOT}/PYLIGHT_SRC_6.5.0
-##
-#------ RANDOMIZER ------
-export RANDOMIZER_ROOT_DIR=${INST_ROOT}/RANDOMIZER_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${RANDOMIZER_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${RANDOMIZER_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${RANDOMIZER_ROOT_DIR}/bin/salome:${RANDOMIZER_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ RANDOMIZER_src ------
-export RANDOMIZER_SRC_DIR=${INST_ROOT}/RANDOMIZER_SRC_6.5.0
-##
-#------ SIERPINSKY ------
-export SIERPINSKY_ROOT_DIR=${INST_ROOT}/SIERPINSKY_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${SIERPINSKY_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${SIERPINSKY_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${SIERPINSKY_ROOT_DIR}/bin/salome:${SIERPINSKY_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ SIERPINSKY_src ------
-export SIERPINSKY_SRC_DIR=${INST_ROOT}/SIERPINSKY_SRC_6.5.0
-##
-#------ YACS ------
-export YACS_ROOT_DIR=${INST_ROOT}/YACS_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${YACS_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${YACS_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${YACS_ROOT_DIR}/bin/salome:${YACS_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ YACS_src ------
-export YACS_SRC_DIR=${INST_ROOT}/YACS_SRC_6.5.0
-##
-#------ YACSGEN ------
-export YACSGEN_ROOT_DIR=${INST_ROOT}/YACSGEN_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PYTHONPATH ${YACSGEN_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages
-  fi
-fi
-##
-#------ YACSGEN_src ------
-export YACSGEN_SRC_DIR=${INST_ROOT}/YACSGEN_SRC_6.5.0
-##
-#------ JOBMANAGER ------
-export JOBMANAGER_ROOT_DIR=${INST_ROOT}/JOBMANAGER_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${JOBMANAGER_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${JOBMANAGER_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${JOBMANAGER_ROOT_DIR}/bin/salome:${JOBMANAGER_ROOT_DIR}/lib/salome:${JOBMANAGER_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ JOBMANAGER_src ------
-export JOBMANAGER_SRC_DIR=${INST_ROOT}/JOBMANAGER_SRC_6.5.0
-##
-#------ SAMPLES_src ------
-export DATA_DIR=${INST_ROOT}/SAMPLES_SRC_6.5.0
-##
-#------ TUTORIAL_src ------
-##
-#------ HOMARD ------
-export HOMARD_ROOT_DIR=${INST_ROOT}/HOMARD_6.5.0
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" = "1" ] ; then
-    exportp PATH ${HOMARD_ROOT_DIR}/bin/salome
-    exportp LD_LIBRARY_PATH ${HOMARD_ROOT_DIR}/lib/salome
-    exportp PYTHONPATH ${HOMARD_ROOT_DIR}/bin/salome:${HOMARD_ROOT_DIR}/lib/salome:${HOMARD_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
-#------ HOMARD_src ------
-export HOMARD_SRC_DIR=${INST_ROOT}/HOMARD_SRC_6.5.0
-##
-#------ xdata ------ 
-export XDATAROOT=${INST_ROOT}/xdata-0.9.3
-exportp PATH ${XDATAROOT}/bin
-exportp PYTHONPATH ${XDATAROOT}/lib/python${PYTHON_VERSION}/site-packages/xdata
-##
-#------ xdata_src ------
-# nothing to do
-##
-#------ HXX2SALOME ------
-export HXX2SALOME_ROOT_DIR=${INST_ROOT}/HXX2SALOME_6.5.0/bin
-exportp PATH ${HXX2SALOME_ROOT_DIR}
-##
-#------ HXX2SALOME_src ------
-# nothing to do
-##
-#------ HXX2SALOMEDOC ------
-#nothing to do
-##
-#------ HXX2SALOMEDOC_src ------
-# nothing to do
-##
-#------ DOCUMENTATION_src ------
-#nothing to do
-##