#
#clean appli
-rm -rf bin lib share doc env.d envd setAppliPath.sh searchFreePort.sh runAppli runConsole runSession runRemote.sh runTests SalomeApp.xml *.pyc *~ .bashrc
+rm -rf bin lib share doc env.d envd getAppliPath.py searchFreePort.sh runAppli runConsole runSession runRemote.sh runTests SalomeApp.xml *.pyc *~ .bashrc
appliskel_dir=os.path.join(home_dir,'bin','salome','appliskel')
for fn in ('envd',
- 'setAppliPath.sh',
+ 'getAppliPath.py',
'searchFreePort.sh',
'runRemote.sh',
'runAppli',
'runTests',
'.bashrc',
):
- virtual_salome.symlink(os.path.join(appliskel_dir, fn),os.path.join(home_dir, fn))
+ virtual_salome.symlink("./bin/salome/appliskel/"+fn,os.path.join(home_dir, fn))
pass
if filename != os.path.join(home_dir,"config_appli.xml"):
f =open(os.path.join(home_dir,'env.d','configSalome.sh'),'w')
for module in _config["modules"]:
- command='export '+ module + '_ROOT_DIR=' + home_dir +'\n'
+ command='export '+ module + '_ROOT_DIR=${HOME}/${APPLI}\n'
f.write(command)
pass
if _config.has_key("samples_path"):
f =open(os.path.join(home_dir,'env.d','configGUI.sh'),'w')
- command = 'export SalomeAppConfig=' + home_dir +'\n'
+ command = 'export SalomeAppConfig=${HOME}/${APPLI}\n'
f.write(command)
- command = 'export SUITRoot=' + os.path.join(home_dir,'share','salome') +'\n'
+ command = 'export SUITRoot=${HOME}/${APPLI}/share/salome\n'
f.write(command)
f.write('export DISABLE_FPE=1\n')
f.write('export MMGT_REENTRANT=1\n')
APPLI_ROOT=`pwd`
# --- clean appli
-rm -rf bin lib share doc envd setAppliPath.sh searchFreePort.sh runAppli runConsole runSession env.d
+rm -rf bin lib share doc envd getAppliPath.py searchFreePort.sh runAppli runConsole runSession env.d
# --- install appli
mkdir -p env.d
ln -fs bin/salome/appliskel/envd .
-ln -fs bin/salome/appliskel/setAppliPath.sh .
+ln -fs bin/salome/appliskel/getAppliPath.py .
ln -fs bin/salome/appliskel/searchFreePort.sh .
ln -fs bin/salome/appliskel/runRemote.sh .
ln -fs bin/salome/appliskel/runAppli .
<!DOCTYPE ResourcesCatalog>
<resources>
- <machine
- protocol="ssh"
- nbOfNodes="1"
- mode="interactif"
- OS="LINUX"
- CPUFreqMHz="2800"
- userName="prascle"
- memInMB="1500"
- nbOfProcPerNode="2"
- alias="cli76cd"
- hostname="cli76cd" >
- </machine>
-
- <machine
- protocol="ssh"
- nbOfNodes="1"
- mode="interactif"
- OS="LINUX"
- CPUFreqMHz="2000"
- userName="prascle"
- memInMB="1000"
- nbOfProcPerNode="1"
- alias="cli76ce"
- hostname="cli76ce" >
- </machine>
+ <machine hostname="localhost" />
</resources>
envd
Sets SALOME application environment, envd is sourced by other scripts.
-setAppliPath.sh
+getAppliPath.py
Used by other scripts to define the Application Path.
searchFreePort.sh
# --- retrieve APPLI path, relative to $HOME, set ${APPLI}
-. `dirname $0`/setAppliPath.sh
+APPLI_HOME=`dirname $0`
+export APPLI=`${APPLI_HOME}/getAppliPath.py`
# --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
# --- retrieve APPLI path, relative to $HOME, set ${APPLI}
-. ${APPLI_HOME}/setAppliPath.sh
+export APPLI=`${APPLI_HOME}/getAppliPath.py`
# --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
# --- retrieve APPLI path, relative to $HOME, set ${APPLI}
-. ${APPLI_HOME}/setAppliPath.sh
+export APPLI=`${APPLI_HOME}/getAppliPath.py`
# --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
# --- retrieve APPLI path, relative to $HOME, set ${APPLI}
-. `dirname $0`/setAppliPath.sh
+APPLI_HOME=`dirname $0`
+export APPLI=`${APPLI_HOME}/getAppliPath.py`
# --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
# --- retrieve APPLI path, relative to $HOME, set ${APPLI}
-. ${APPLI_HOME}/setAppliPath.sh
+export APPLI=`${APPLI_HOME}/getAppliPath.py`
# --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
# --- retrieve APPLI path, relative to $HOME, set ${APPLI}
-. `dirname $0`/setAppliPath.sh
+APPLI_HOME=`dirname $0`
+export APPLI=`${APPLI_HOME}/getAppliPath.py`
# --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
+++ /dev/null
-#!/bin/bash
-
-# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
-# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
-# 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.
-#
-# 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
-#
-
-# --- retrieve APPLI path, relative to $HOME, set ${APPLI}
-# on sarge, "which" gives not allways the absolute path...
-
-comName=`which $0`
-aa=${comName:0:1}
-if test x$aa == x\/; then
- mycom=${comName}
-elif test x$aa == x\.; then
- mycom=${PWD}/${comName:2}
-else
- mycom=${PWD}/${comName}
-fi
-APPLI=`echo ${HOME} \`dirname $mycom\` | awk ' { print substr($2,length($1)+2) } '`
-#echo $APPLI
-export APPLI
if platform.machine() == "ia64":
__lib__dir__ = "lib"
else:
- __lib__dir__ = "lib64"
+ __lib__dir__ = "lib"
else:
__lib__dir__ = "lib"
return __lib__dir__
if platform.machine() == "ia64":
__lib__dir__ = "lib"
else:
- __lib__dir__ = "lib64"
+ __lib__dir__ = "lib"
else:
__lib__dir__ = "lib"
return __lib__dir__
AC_CHECKING(for LIB_LOCATION_SUFFIX)
LIB_LOCATION_SUFFIX=""
case "$build_cpu" in
- x86_64*) LIB_LOCATION_SUFFIX="64" ;;
+ x86_64*) LIB_LOCATION_SUFFIX="" ;;
*) LIB_LOCATION_SUFFIX="" ;;
esac
AC_SUBST(LIB_LOCATION_SUFFIX)
if platform.machine() == "ia64":
libdir = "lib"
else:
- libdir = "lib64"
+ libdir = "lib"
else:
libdir = "lib"
for rep in path: