From f9755cbb9f9bde99737b7c59489540dabaa17ea0 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 31 Jul 2007 10:23:23 +0000 Subject: [PATCH] *** empty log message *** --- bin/runLightSalome.sh | 46 +++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/bin/runLightSalome.sh b/bin/runLightSalome.sh index df19ca7ba..b09cb94cb 100755 --- a/bin/runLightSalome.sh +++ b/bin/runLightSalome.sh @@ -1,22 +1,23 @@ -# Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D +#!/bin/bash -f +# +# Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -#!/bin/bash -f # this variable necessary for loading .ini or .xml file if [ -z "$LightAppConfig" ] ; then @@ -26,4 +27,23 @@ if [ -z "$LightAppResources" ] ; then export LightAppResources=${GUI_ROOT_DIR}/share/salome/resources/gui fi +modules="KERNEL GUI" + +for arg in X $* ; do + if [ "$arg" != "X" ] ; then + case $arg in + --modules=* ) modules="$modules "`echo $arg | awk -F= '{ print $2 }' | sed -e "s%,% %g"` ;; + *) ;; + esac + fi +done + +for mod in $modules ; do + if [ "$arg" != "X" ] ; then + root_dir=`printenv ${mod}_ROOT_DIR` + export PATH=${root_dir}/bin/salome:${PATH} + export LD_LIBRARY_PATH=${root_dir}/lib/salome:${LD_LIBRARY_PATH} + fi +done + SUITApp LightApp -style salome $* & -- 2.39.2