File: postinst

package info (click to toggle)
vis 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,624 kB
  • sloc: ansic: 23,195; sh: 981; makefile: 363; python: 47
file content (30 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (4)
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


#DEBHELPER#

exit 0