X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2Fappli_clean.sh;h=521940cd4b86e0c68cd517d03b4551b9d6993c9c;hb=2cb5ecb3b8e2a43f35a5fafc0176d326e1f039bd;hp=8c5151431abdbd4a82e2e853f2d8fe0995af7da3;hpb=8bb6a8ab74312d95431fb58880ca66010b13ccf4;p=modules%2Fkernel.git diff --git a/bin/appli_clean.sh b/bin/appli_clean.sh index 8c5151431..521940cd4 100644 --- a/bin/appli_clean.sh +++ b/bin/appli_clean.sh @@ -23,12 +23,29 @@ #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