summaryrefslogtreecommitdiff
path: root/support/gtex-letter/uninstall
blob: 18cd94f7b9c084fc0d540f8cf176e34d03914a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/bash
#
#uninstall gtex-letter
#must be root to run

PREFIX=/opt/gnome/bin/
DIR=gtex-letter-prg
PRG=gtex-letter
RCFILE=.gtex-letterrc
LC_PATH=/usr/share/locale/de/LC_MESSAGES
DOC_PATH=/opt/gnome/doc/gtex-letter

if [ -d $PREFIX$DIR ]
then
	rm -r $PREFIX$DIR && echo "Directory $PREFIX$DIR deleted."
fi

if [ -h $PREFIX$PRG ]
then 
	rm -r $PREFIX$PRG && echo "Link $PREFIX$PRG deleted."
fi

if [ -d $DOC_PATH ]
then
	rm -r $DOC_PATH && echo "Documentation deleted."
fi

if [ -e $LC_PATH/gtex-letter.mo ]
then 
	rm -r $LC_PATH/gtex-letter.mo && echo "Translation-File deleted."
fi