]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: option -f to force clean, for use by YACS, make check
authorprascle <prascle>
Thu, 6 Aug 2009 08:05:26 +0000 (08:05 +0000)
committerprascle <prascle>
Thu, 6 Aug 2009 08:05:26 +0000 (08:05 +0000)
bin/appli_clean.sh

index 8c5151431abdbd4a82e2e853f2d8fe0995af7da3..521940cd4b86e0c68cd517d03b4551b9d6993c9c 100644 (file)
 #clean appli
 
 DELCOM="rm -rf bin lib share doc idl env.d envd USERS getAppliPath.py searchFreePort.sh runAppli runConsole runSession runRemote.sh runTests SalomeApp.xml *.pyc *~ .bashrc"
-echo "Do you want to delete a SALOME application in this directory ? " `pwd`
-echo "command to execute: " $DELCOM
-echo "enter yes or no"
-read ANSWER
-echo "ANSWER="$ANSWER
-if [ "x$ANSWER" == "xyes" ]
+DOIT="false"
+
+if [ $# > 0 ]
+then
+  if [ "x$1" == "x-f" ]
+  then DOIT="true"
+  fi
+fi
+
+if [ $DOIT == "false" ]
+then
+  echo "Do you want to delete a SALOME application in this directory ? " `pwd`
+  echo "command to execute: " $DELCOM
+  echo "enter yes or no"
+  read ANSWER
+  echo "ANSWER="$ANSWER
+  if [ "x$ANSWER" == "xyes" ]
+  then
+    DOIT="true"
+  fi
+fi
+
+if [ $DOIT == "true" ] 
 then
   $DELCOM
 fi