Salome HOME
8ce6821b03dbc11f348beb98faac0bcfa988fb9f
[modules/smesh.git] / src / Tools / padder / resources / appligen / appligen.sh.in
1 #!/bin/sh
2
3 # This script installs or updates a SALOME application for testing the
4 # PADDER plugin for SMESH. The application is installed in the
5 # directory ./appli. The configuration file is supposed to be adapted
6 # to your own environment (see config_appli.xml).
7 #
8 # To run this script, you should have first configure your
9 # shell with the SALOME environment, i.e. source the files
10 # prerequis.sh and envSalome.sh (or equivalent) that fit
11 # your configuration. You can alternatively customize the env.sh file
12 # to fit your SALOME environment and let the script do the job (see
13 # source below).
14 #
15 # (gboulant - 3/2/2011)
16 #
17
18 here=$(dirname $0)
19
20 #
21 # Run the appli_gen.py
22 #
23 APPLIDIR="./appli"
24 @KERNEL_ROOT_DIR@/bin/salome/appli_gen.py --prefix=$APPLIDIR --config=$here/config_appli.xml
25
26 #
27 # Copy customized configuration files in the application
28 #
29 cp $here/SalomeApp.xml $APPLIDIR/.
30 cp $here/CatalogResources.xml $APPLIDIR/.
31 cp @prefix@/plugins/envPlugins.sh $APPLIDIR/env.d/.