This file is indexed.

prerm is in vim-gnome 2:7.3.429-2ubuntu2.2.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
set -e

pkg=vim-gnome
variant=gnome

# two things to do:
# 1) remove /usr/bin/vim.variant as alternative for /usr/bin/vim
# 2) remove /usr/bin/gvim as an alternative for gnome-text-editor for
#    variants built with gnome support

remove_gnome_alternative () {
  if [ -f /usr/bin/vim.$variant ]; then
    update-alternatives --remove gnome-text-editor /usr/bin/vim.$variant
  fi
}

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|athena|gnome) # 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)
    case "$pkg" in
      vim-gnome) # gnome enabled variants
        remove_gnome_alternative
        ;;
    esac
    remove_variant_alternative
    ;;

  upgrade|failed-upgrade)
    ;;

  *)
    echo "prerm called with unknown argument \`$1'" >&2
    exit 0
    ;;
esac



exit 0