diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 13:18:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 13:18:04 +0000 |
commit | 519cbf08704063b930fa613235d4a598105a449a (patch) | |
tree | 426a5a2a33b5ea123678481edd7d59dcf7ff58e9 /debian/vim-gtk.preinst | |
parent | Adding upstream version 2:8.2.2434. (diff) | |
download | vim-519cbf08704063b930fa613235d4a598105a449a.tar.xz vim-519cbf08704063b930fa613235d4a598105a449a.zip |
Adding debian version 2:8.2.2434-3+deb11u1.debian/2%8.2.2434-3+deb11u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/vim-gtk.preinst')
-rw-r--r-- | debian/vim-gtk.preinst | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/vim-gtk.preinst b/debian/vim-gtk.preinst new file mode 100644 index 0000000..8ac7bc2 --- /dev/null +++ b/debian/vim-gtk.preinst @@ -0,0 +1,27 @@ +#!/bin/sh +set -e + +variant=gtk + +# 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 + remove_gui_variant_alternative +} + +remove_gui_variant_alternative () { + for i in eview evim gview gvimdiff rgview rgvim gvim; do + update-alternatives --remove $i /usr/bin/vim.$variant + done +} + +if [ "$1" = "upgrade" ]; then + remove_variant_alternative +fi + +#DEBHELPER# + +exit 0 |