Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/smesh.git] / src / Tools / padder / resources / appligen / appligen.sh.in
1 #!/bin/sh
2 # Copyright (C) 2011-2012  CEA/DEN, EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21
22 # This script installs or updates a SALOME application for testing the
23 # PADDER plugin for SMESH. The application is installed in the
24 # directory ./appli. The configuration file is supposed to be adapted
25 # to your own environment (see config_appli.xml).
26 #
27 # To run this script, you should have first configure your
28 # shell with the SALOME environment, i.e. source the files
29 # prerequis.sh and envSalome.sh (or equivalent) that fit
30 # your configuration. You can alternatively customize the env.sh file
31 # to fit your SALOME environment and let the script do the job (see
32 # source below).
33 #
34 # (gboulant - 3/2/2011)
35 #
36
37 here=$(dirname $0)
38
39 #
40 # Run the appli_gen.py
41 #
42 APPLIDIR="./appli"
43 @KERNEL_ROOT_DIR@/bin/salome/appli_gen.py --prefix=$APPLIDIR --config=$here/config_appli.xml
44
45 #
46 # Copy customized configuration files in the application
47 #
48 cp $here/SalomeApp.xml $APPLIDIR/.
49 cp $here/CatalogResources.xml $APPLIDIR/.
50 cp @prefix@/plugins/envPlugins.sh $APPLIDIR/env.d/.