]> Creatis software - creaToolsTools.git/blob - Linux/scripts/CreaTools-uninstall.sh
Feature #1773 Add licence terms for all files.
[creaToolsTools.git] / Linux / scripts / CreaTools-uninstall.sh
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
4 #                        pour la Santé)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 #
7 #  This software is governed by the CeCILL-B license under French law and 
8 #  abiding by the rules of distribution of free software. You can  use, 
9 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
10 #  license as circulated by CEA, CNRS and INRIA at the following URL 
11 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
12 #  or in the file LICENSE.txt.
13 #
14 #  As a counterpart to the access to the source code and  rights to copy,
15 #  modify and redistribute granted by the license, users are provided only
16 #  with a limited warranty  and the software's author,  the holder of the
17 #  economic rights,  and the successive licensors  have only  limited
18 #  liability. 
19 #
20 #  The fact that you are presently reading this means that you have had
21 #  knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------  
23
24
25 #!/bin/bash
26
27  echo "in uninstall"
28 # if [ $UID = 0 ] 
29 # then
30   # Set all local variables
31   source $PWD/scripts/CreaTools-configure.sh
32   
33   cd $installPrefix
34   
35   cd bin
36   # Maybe too much brute! (What if anything else starts with 'bb' or 'crea'?)
37    #rm -f bb*
38    #rm -f crea*
39
40    # WARNING : this list must be updated when new package is added
41
42 rm -f bbc
43 rm -f bbCreateBlackBox
44 rm -f bbCreatePackage
45 rm -f bbEditor
46 rm -f bbfy
47 rm -f bbi
48 rm -f bbPackageBrowser
49 rm -f bbPlugPackage
50 rm -f bbPostInstallPackage
51 rm -f bbRegenerateBoxesLists
52 rm -f bbRegeneratePackageDoc
53 rm -f bbs2cpp
54 rm -f bbStudio
55 rm -f bbtk-install-gnome
56 rm -f bbtk-uninstall.sh
57 rm -f creaContourApp
58 rm -f creaGimmickApp
59 rm -f creaImageIOApp
60 rm -f creaNewProject
61 rm -f creaNewProject.sh
62
63   cd ../include
64   # Maybe too much brute! (What if anything else starts with 'bb' or 'crea'?)
65   #rm -rf bb*
66   #rm -rf crea* 
67
68      # WARNING : this list must be updated when new package is added
69 echo "rm include's" 
70 rm -rf bbappli
71 rm -rf bbcreaContours
72 rm -rf bbcreaImageIO
73 rm -rf bbcreaMaracasVisu
74 rm -rf bbdemo
75 rm -rf bbgdcmvtk
76 rm -rf bbitk
77 rm -rf bbitkvtk
78 rm -rf bbPackRecalage
79 rm -rf bbqt
80 rm -rf bbstd
81 rm -rf bbtk
82 rm -rf bbtoolsbbtk
83 rm -rf bbvtk
84 rm -rf bbwx
85 rm -rf bbwxvtk
86 rm -rf crea
87 rm -rf creaBruker
88 rm -rf creaContours
89 rm -rf creaEnvironment
90 rm -rf creaImageIO
91 rm -rf creaMaracasVisu
92   
93   cd ../lib
94   # this one is riskless
95 echo "rm lib's"  
96   rm -rf creatools
97   
98   cd ../share
99   # this one is riskless
100   echo "rm share's"
101   rm -rf bbtk creaImageIO creaNewProject creaContours creaMaracasVisu  
102   rm -f creatools_base_library_config.sh
103
104
105   #if [ ! -f /etc/bashrc ]
106   #then
107   #    export ETC_BASHRC="/etc/bash.bashrc"
108   #else
109   #    export ETC_BASHRC="/etc/bashrc"
110   #fi
111   #  echo "revert $ETC_BASHRC to previous value"
112   # revert /etc/bashrc to previous value  
113   # - remove line 'bash $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh'
114   #sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC 
115   
116 echo "revert $HOME/.bashrc to previous value"  
117 sed -i -e '/.*creatools_base_library_config.*/ d' $HOME/.bashrc
118
119 #else
120 #  echo
121 #  echo "..ERROR.."
122 #  echo "==================================================="
123 #  echo "REMEMBER !"
124 # echo ""
125 #  echo "YOU NEED TO RUN THIS ONE AS root"
126 #  echo "==================================================="
127 #  echo
128 #  echo
129 #fi 
130