This file is indexed.

postinst is in vis 0.4-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
#!/bin/sh

set -e

mandir=/usr/share/man


# Priorities for 'editor' and 'vi':
#
# vim-tiny: 15
# vim:      30
# vim-nox:  40
# nano:     40 (not for vi)
# vim-gtk:  50
#
# With prority 35 we override vim but not vim-nox or nano.


update-alternatives \
  --install /usr/bin/editor editor /usr/bin/vis 35 \
  --slave $mandir/man1/editor.1.gz editor.1.gz $mandir/man1/vis.1.gz

update-alternatives \
  --install /usr/bin/vi vi /usr/bin/vis 35 \
  --slave $mandir/man1/vi.1.gz vi.1.gz $mandir/man1/vis.1.gz




exit 0