blob: 0d7fb6814bfb65511c5f9fc8c49d7c265605f2ad (
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
37
38
39
40
41
42
43
|
#!/bin/sh
set -e
pkg=@PKG@
variant=@VARIANT@
# remove /usr/bin/vim.variant as alternative for /usr/bin/vim
remove_variant_alternative () {
for i in vi view ex editor rvim rview vimdiff vim; do
update-alternatives --remove $i /usr/bin/vim.$variant
done
case "$variant" in
gtk|gtk3|athena) # gui enabled variants
remove_gui_variant_alternative
;;
esac
}
remove_gui_variant_alternative () {
for i in eview evim gview gvimdiff rgview rgvim gvim; do
update-alternatives --remove $i /usr/bin/vim.$variant
done
}
case "$1" in
# only remove in remove/deconfigure so we don't disrupt users' preferences
remove|deconfigure)
remove_variant_alternative
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 0
;;
esac
#DEBHELPER#
exit 0
|