Salome HOME
Fix Numpy version conflict when using custom Numpy with System Python and that anothe...
[modules/kernel.git] / bin / appli_install.sh
1 #!/bin/sh 
2 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
3 #
4 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
20 #
21 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #
23
24 SALOME_ROOT=${HOME}/SALOME2
25 INSTALL_ROOT=${SALOME_ROOT}/Install
26
27 APPLI_ROOT=`pwd`
28
29 # --- clean appli
30 rm -rf bin lib share doc envd getAppliPath.py searchFreePort.sh runAppli runConsole runSession env.d
31
32 # --- install appli
33
34 mkdir -p env.d
35 ln -fs bin/salome/appliskel/envd .
36 ln -fs bin/salome/appliskel/getAppliPath.py .
37 ln -fs bin/salome/appliskel/searchFreePort.sh .
38 ln -fs bin/salome/appliskel/runRemote.sh .
39 ln -fs bin/salome/appliskel/runAppli .
40 ln -fs bin/salome/appliskel/runConsole .
41 ln -fs bin/salome/appliskel/runSession .
42 ln -fs bin/salome/appliskel/runTests .
43 ln -fs bin/salome/appliskel/.bashrc .
44
45 # --- prerequisites
46
47 if [ x${PREREQUISITE_SH} != x ]; then
48   cp ${PREREQUISITE_SH} env.d/envProducts.sh;
49 else
50   # --- unless PREREQUISITE_SH defines the prerequisite script, 
51   #     edit and uncomment the following line to set it, and comment the echo and exit lines
52   #ln -fs myPathForSalomePrerequisiteScriptToBeSourced env.d/envProducts.sh
53   echo "The file to source for SALOME prerequisite definition is not known:"
54   echo "--> Edit the corresponding line in " $0 ",Comment this message and the following exit command,"
55   exit 1;
56 fi
57
58 # --- symbolic links creation, from modules_root_dir
59
60 VERSION=V3_2_0
61
62 for module in KERNEL MED GUI GEOM SMESH VISU LIGHT NETGENPLUGIN PYCALCULATOR; 
63 do 
64     echo " ========= " ${module};
65     python virtual_salome.py -v --prefix="." --module=$INSTALL_ROOT/${module}_${VERSION}
66     echo "export ${module}_ROOT_DIR=$APPLI_ROOT" >> env.d/configSalome.sh
67 done
68
69 # --- HELLO module
70
71 echo " =========  HELLO1";
72 python virtual_salome.py -v --prefix="." --module=$INSTALL_ROOT/HELLO1_${VERSION}
73 echo "export HELLO_ROOT_DIR=$APPLI_ROOT" >> env.d/configSalome.sh
74
75 # --- PYHELLO module
76
77 echo " ========= PYHELLO1";
78 python virtual_salome.py -v --prefix="." --module=$INSTALL_ROOT/PYHELLO1_${VERSION}
79 echo "export PYHELLO_ROOT_DIR=$APPLI_ROOT" >> env.d/configSalome.sh
80
81 # --- GUI config
82
83 echo "export config_var=$APPLI_ROOT:$APPLI_ROOT/share/salome/resources/gui" >> env.d/configGUI.sh
84
85 # --- SAMPLES directory
86
87 echo "export DATA_DIR=$INSTALL_ROOT/SAMPLES/${VERSION}/SAMPLES_SRC" >> env.d/configSalome.sh
88
89 # ---