Revision 1199 tmp/org.txm.setups/shared/debian/DEBIAN/preinst

preinst (revision 1199)
2 2
VERSION=-TXMVERSION
3 3

  
4 4
echo "removing /usr/lib/TXM${VERSION}"
5
if [ ! -d "/usr/lib/TXM${VERSION}" ]; then
5
if [ -d "/usr/lib/TXM${VERSION}" ]; then
6 6
	rm -rf "/usr/lib/TXM${VERSION}"
7 7
fi
8 8

  
9 9
echo "removing /usr/share/doc/txm${VERSION}"
10
if [ ! -d "/usr/share/doc/txm${VERSION}" ]; then
10
if [ -d "/usr/share/doc/txm${VERSION}" ]; then
11 11
	rm -rf "/usr/share/doc/txm${VERSION}"
12 12
fi
13 13

  
14 14
echo "removing /usr/share/lintian/overrides/txm${VERSION}"
15
if [ ! -d "/usr/share/lintian/overrides/txm${VERSION}" ]; then
15
if [ -d "/usr/share/lintian/overrides/txm${VERSION}" ]; then
16 16
	rm -rf "/usr/share/lintian/overrides/txm${VERSION}"
17 17
fi
18 18

  
19 19
echo "removing /usr/share/TXM${VERSION}"
20
if [ ! -d "/usr/share/TXM${VERSION}" ]; then
20
if [ -d "/usr/share/TXM${VERSION}" ]; then
21 21
	rm -rf "/usr/share/TXM${VERSION}"
22 22
fi
23 23

  
24 24
echo "removing /usr/share/applications/TXM${VERSION}.desktop"
25
if [ ! -f "/usr/share/applications/TXM${VERSION}.desktop" ]; then
25
if [ -f "/usr/share/applications/TXM${VERSION}.desktop" ]; then
26 26
	rm "/usr/share/applications/TXM${VERSION}.desktop"
27
fi
28

  
29
echo "removing /usr/share/applications/TXM${VERSION} debug.desktop"
30
if [ -f "/usr/share/applications/TXM${VERSION}.desktop" ]; then
27 31
	rm "/usr/share/applications/TXM${VERSION} debug.desktop"
28 32
fi
29 33

  
30 34
echo "removing /usr/bin/TXM${VERSION}"
31
if [ ! -f "/usr/bin/TXM${VERSION}" ]; then
35
if [ -f "/usr/bin/TXM${VERSION}" ]; then
32 36
	rm "/usr/bin/TXM${VERSION}"
33 37
fi
34 38

  

Also available in: Unified diff