Salome HOME
22919bf14ddba7387b363b7ef8cf541362dcb64f
[modules/kernel.git] / bin / appli_install.sh
1 #!/bin/sh 
2
3 SALOME_ROOT=${HOME}/SALOME2
4 INSTALL_ROOT=${SALOME_ROOT}/Install
5
6 APPLI_ROOT=`pwd`
7
8 # --- clean appli
9 rm -rf bin lib share doc envd setAppliPath.sh searchFreePort.sh runAppli runConsole runSession env.d
10
11 # --- install appli
12
13 mkdir -p env.d
14 ln -fs bin/salome/appliskel/envd .
15 ln -fs bin/salome/appliskel/setAppliPath.sh .
16 ln -fs bin/salome/appliskel/searchFreePort.sh .
17 ln -fs bin/salome/appliskel/runRemote.sh .
18 ln -fs bin/salome/appliskel/runAppli .
19 ln -fs bin/salome/appliskel/runConsole .
20 ln -fs bin/salome/appliskel/runSession .
21 ln -fs bin/salome/appliskel/runTests .
22 ln -fs bin/salome/appliskel/.bashrc .
23
24 # --- prerequisites
25
26 if [ x${PREREQUISITE_SH} != x ]; then
27   cp ${PREREQUISITE_SH} env.d/envProducts.sh;
28 else
29   # --- unless PREREQUISITE_SH defines the prerequisite script, 
30   #     edit and uncomment the following line to set it, and comment the echo and exit lines
31   #ln -fs myPathForSalomePrerequisiteScriptToBeSourced env.d/envProducts.sh
32   echo "The file to source for SALOME prerequisite definition is not known:"
33   echo "--> Edit the corresponding line in " $0 ",Comment this message and the following exit command,"
34   exit 1;
35 fi
36
37 # --- symbolic links creation, from modules_root_dir
38
39 VERSION=V3_2_0
40
41 for module in KERNEL MED GUI GEOM SMESH VISU SUPERV LIGHT NETGENPLUGIN PYCALCULATOR; 
42 do 
43     echo " ========= " ${module};
44     python virtual_salome.py -v --prefix="." --module=$INSTALL_ROOT/${module}_${VERSION}
45     echo "export ${module}_ROOT_DIR=$APPLI_ROOT" >> env.d/configSalome.sh
46 done
47
48 # --- HELLO module
49
50 echo " =========  HELLO1";
51 python virtual_salome.py -v --prefix="." --module=$INSTALL_ROOT/HELLO1_${VERSION}
52 echo "export HELLO_ROOT_DIR=$APPLI_ROOT" >> env.d/configSalome.sh
53
54 # --- PYHELLO module
55
56 echo " ========= PYHELLO1";
57 python virtual_salome.py -v --prefix="." --module=$INSTALL_ROOT/PYHELLO1_${VERSION}
58 echo "export PYHELLO_ROOT_DIR=$APPLI_ROOT" >> env.d/configSalome.sh
59
60 # --- GUI config
61
62 echo "export config_var=$APPLI_ROOT:$APPLI_ROOT/share/salome/resources" >> env.d/configGUI.sh
63 echo "export SUITRoot=$APPLI_ROOT/share/salome" >> env.d/configGUI.sh
64
65 # --- SAMPLES directory
66
67 echo "export DATA_DIR=$INSTALL_ROOT/SAMPLES/${VERSION}/SAMPLES_SRC" >> env.d/configSalome.sh
68
69 # ---