Statistics
| Revision:

root / tmp / org.txm.setups / shared / debian / DEBIAN / preinst @ 1199

History | View | Annotate | Download (1.1 kB)

1
#!/bin/bash
2
VERSION=-TXMVERSION
3

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

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

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

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

    
24
echo "removing /usr/share/applications/TXM${VERSION}.desktop"
25
if [ -f "/usr/share/applications/TXM${VERSION}.desktop" ]; then
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
31
	rm "/usr/share/applications/TXM${VERSION} debug.desktop"
32
fi
33

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

    
39
echo "/usr/lib/TXM${VERSION} pre-installation done."