]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: add some checks BR_V3_1_0_PR_01feb06
authorprascle <prascle>
Thu, 2 Feb 2006 07:46:21 +0000 (07:46 +0000)
committerprascle <prascle>
Thu, 2 Feb 2006 07:46:21 +0000 (07:46 +0000)
bin/createAppli.sh

index c6c4de07287f95b0343aeea44186648861db767f..1ff6ed6def573fd3c20538caec9fa47e80559aa4 100755 (executable)
@@ -3,5 +3,15 @@
 comName=`which $0`
 rep=`dirname $comName`
 
-cp -r $rep/appliskel $1
-chmod +x $1/*.sh $1/run* $1/envd
+if [ $# -ne 1 ]
+  echo "--- usage:"
+  echo $0 AppliName
+  echo "--- In which AppliName is a directory to create with SALOME application scripts"
+elif [ -d $1]
+  echo $1 "directory already exists, nothing done"
+else
+  mkdir -p $1
+  cp -r $rep/appliskel/* $1
+  cp $rep/appliskel/.bashrc $1
+  chmod +x $1/*.sh $1/run* $1/envd
+fi
\ No newline at end of file