From: prascle Date: Thu, 6 Aug 2009 08:05:26 +0000 (+0000) Subject: PR: option -f to force clean, for use by YACS, make check X-Git-Tag: V5_1_3rc1~92 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb5df7bc23eb0a643e135cc07f6bdfc814c0a039;p=modules%2Fkernel.git PR: option -f to force clean, for use by YACS, make check --- 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