Salome HOME
This commit was generated by cvs2git to create branch 'OCC_Config'.
[modules/kernel.git] / bin / createAppli.sh
1 #!/bin/sh
2
3 comName=`which $0`
4 rep=`dirname $comName`
5
6 if [ $# -ne 1 ]
7   echo "--- usage:"
8   echo $0 AppliName
9   echo "--- In which AppliName is a directory to create with SALOME application scripts"
10 elif [ -d $1]
11   echo $1 "directory already exists, nothing done"
12 else
13   mkdir -p $1
14   cp -r $rep/appliskel/* $1
15   cp $rep/appliskel/.bashrc $1
16   chmod +x $1/*.sh $1/run* $1/envd
17 fi