File: postinst

package info (click to toggle)
elvis 2.1i-3
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 4,120 kB
  • ctags: 5,838
  • sloc: ansic: 53,854; sh: 811; makefile: 263
file content (31 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download
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
#!/bin/sh
#
# postinst file for elvis-2.1

#added to comply with the new editor standard
update-alternatives --install /usr/bin/editor editor /usr/bin/elvisnox -5 \
  --slave /usr/man/man1/editor.1.gz editor.1.gz /usr/man/man1/elvis.1.gz

#Changed priority to comply with the new editor standard
update-alternatives --install /usr/bin/vi vi /usr/bin/elvisnox -5 \
  --slave /usr/man/man1/vi.1.gz vi.1.gz /usr/man/man1/elvis.1.gz

update-alternatives --install /usr/bin/ex ex /usr/bin/elvisnox -5 \
  --slave /usr/man/man1/ex.1.gz ex.1.gz /usr/man/man1/elvis.1.gz

update-alternatives --install /usr/bin/view view /usr/bin/elvisnox -5 \
  --slave /usr/man/man1/view.1.gz view.1.gz /usr/man/man1/elvis.1.gz

update-alternatives --install /usr/bin/input input /usr/bin/elvisnox -5 \
  --slave /usr/man/man1/input.1.gz input.1.gz /usr/man/man1/elvis.1.gz

update-alternatives --install /usr/bin/ctags ctags /usr/bin/ctags-elvis -5 \
  --slave /usr/man/man1/ctags.1.gz ctags.1.gz /usr/man/man1/ctags-elvis.1.gz

update-alternatives --install /usr/bin/ref ref /usr/bin/ref-elvis -5 \
  --slave /usr/man/man1/ref.1.gz ref.1.gz /usr/man/man1/ref-elvis.1.gz

#DEBHELPER#

exit 0