Mercurial > trustbridge
annotate packaging/linux-uninstaller.inc @ 1233:7da9ec20eae4
(issue148) Disable UI Updates while loading the list.
This removes flickering when updates are loaded.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 24 Sep 2014 15:49:27 +0200 |
parents | d51ae656cfd6 |
children | 77c9e35657ab |
rev | line source |
---|---|
1150 | 1 #!/bin/bash |
1165
d51ae656cfd6
Added copyright/license header [m13/issue101].
Sascha Wilde <wilde@intevation.de>
parents:
1150
diff
changeset
|
2 # Copyright (C) 2014 by Bundesamt fΓΌr Sicherheit in der Informationstechnik |
d51ae656cfd6
Added copyright/license header [m13/issue101].
Sascha Wilde <wilde@intevation.de>
parents:
1150
diff
changeset
|
3 # Software engineering by Intevation GmbH |
d51ae656cfd6
Added copyright/license header [m13/issue101].
Sascha Wilde <wilde@intevation.de>
parents:
1150
diff
changeset
|
4 # |
d51ae656cfd6
Added copyright/license header [m13/issue101].
Sascha Wilde <wilde@intevation.de>
parents:
1150
diff
changeset
|
5 # This file is Free Software under the GNU GPL (v>=2) |
d51ae656cfd6
Added copyright/license header [m13/issue101].
Sascha Wilde <wilde@intevation.de>
parents:
1150
diff
changeset
|
6 # and comes with ABSOLUTELY NO WARRANTY! |
d51ae656cfd6
Added copyright/license header [m13/issue101].
Sascha Wilde <wilde@intevation.de>
parents:
1150
diff
changeset
|
7 # See LICENSE.txt for details. |
d51ae656cfd6
Added copyright/license header [m13/issue101].
Sascha Wilde <wilde@intevation.de>
parents:
1150
diff
changeset
|
8 |
1150 | 9 set -u |
10 | |
11 ###INCLUDE:linux-installer-common.inc | |
12 ###INCLUDE:linux-uninstaller.l10n-de | |
13 | |
14 ###INCLUDE:linux-installer-uninstall.inc | |
15 | |
16 DEINSTALL=1 | |
17 | |
18 usage() | |
19 { | |
20 getxt "Usage: %s [OPTION]...\n" "$ME" | |
21 getxt "Uninstall TrustBridge.\n\n" | |
22 getxt "Options:\n" | |
23 getxt " -s, --system do a system wide deinstallation\n" | |
24 getxt " --help display this help and exit\n" | |
25 getxt " --version output version information and exit\n" | |
26 exit $1 | |
27 } | |
28 | |
29 parse_args() | |
30 { | |
31 OPTS=`getopt \ | |
32 -l help,system,version \ | |
33 -o s -n "$ME" -- "$@"` | |
34 [ $? -eq 0 ] || usage 23 | |
35 | |
36 eval set -- "$OPTS" | |
37 | |
38 while true ; do | |
39 case "$1" in | |
40 --system|-s) | |
41 SYSINST=1 | |
42 shift 1 | |
43 ;; | |
44 --help) | |
45 usage 0 | |
46 ;; | |
47 --version) | |
48 version | |
49 ;; | |
50 --) | |
51 shift | |
52 break | |
53 ;; | |
54 esac | |
55 done | |
56 } | |
57 | |
58 #====================================================================== | |
59 # main() | |
60 | |
61 parse_args "$@" | |
62 check_priv | |
63 init_vars | |
64 read_oldinstcfg | |
65 | |
66 cat <<EOF | |
67 ------------------------------------------------------------------------ | |
68 | |
69 TrustBridge - Uninstaller | |
70 Version ${instcfg[VERSION]} - ${ARCH} (Testversion) | |
71 | |
72 ------------------------------------------------------------------------ | |
73 EOF | |
74 | |
75 deinstall | |
76 exit 0 |