From fb5df7bc23eb0a643e135cc07f6bdfc814c0a039 Mon Sep 17 00:00:00 2001 From: prascle Date: Thu, 6 Aug 2009 08:05:26 +0000 Subject: [PATCH] PR: option -f to force clean, for use by YACS, make check --- bin/appli_clean.sh | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) 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 -- 2.39.2