Salome HOME
Integration of 0019971: A patch for cmake compilation.
[modules/kernel.git] / bin / createAppli.sh
1 #!/bin/sh 
2
3 # Copyright (C) 2005  OPEN CASCADE, CEA, EDF R&D, LEG
4 #           PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either 
8 # version 2.1 of the License.
9
10 # This library is distributed in the hope that it will be useful 
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 # Lesser General Public License for more details.
14
15 # You should have received a copy of the GNU Lesser General Public  
16 # License along with this library; if not, write to the Free Software 
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18
19 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20
21
22 comName=`which $0`
23 rep=`dirname $comName`
24
25 if [ $# -ne 1 ]; then
26   echo "--- usage:"
27   echo $0 AppliName
28   echo "--- In which AppliName is a directory to create with SALOME application scripts"
29 elif [ -d $1 ]; then
30   echo $1 "directory already exists, nothing done"
31 else
32   mkdir -p $1
33   cp -r $rep/appliskel/* $1
34   cp $rep/appliskel/.bashrc $1
35   chmod +x $1/*.sh $1/run* $1/envd
36 fi