Salome HOME
Merge branch 'mbs/auto_backup' of https://codev-tuleap.cea.fr/plugins/git/salome...
[modules/kernel.git] / bin / appli_clean.sh
1 #!/bin/bash
2 # Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
3 #
4 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
20 #
21 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #
23
24 #clean appli
25
26 DELCOM="rm -rf bin lib share doc idl env.d envd venv USERS getAppliPath.py runRemote.sh SalomeApp.xml update_catalogs.py kill_remote_containers.py salome .salome_run salome_common.py salome_mesa __pycache__ *.pyc *~ .bashrc"
27 DOIT="false"
28
29 if [ $# -gt 0 ]
30 then
31   if [ "x$1" == "x-f" ]
32   then
33      DOIT="true"
34   fi
35 fi
36
37 if [ $DOIT == "false" ]
38 then
39   echo "Do you want to delete a SALOME application in this directory ? " `pwd`
40   echo "command to execute: " $DELCOM
41   echo "enter yes or no"
42   read ANSWER
43   echo "ANSWER="$ANSWER
44   if [ "x$ANSWER" == "xyes" ]
45   then
46     DOIT="true"
47   fi
48 fi
49
50 if [ $DOIT == "true" ]
51 then
52   $DELCOM
53 fi