File: vim.prerm

package info (click to toggle)
vim 6.1.018-1woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 18,144 kB
  • ctags: 13,404
  • sloc: ansic: 171,869; makefile: 2,680; perl: 1,022; awk: 700; sh: 546; csh: 6
file content (34 lines) | stat: -rw-r--r-- 473 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
32
33
34
#! /bin/sh

set -e

pkg=vim

update_docbase() {
	if command -v install-docs >/dev/null 2>&1 ; then
		for i in vim-reference vim-usermanual ; do
			install-docs -i /usr/share/doc-base/$i
		done
	fi
}

update_alts() {
	for i in vi view ex editor ; do
		update-alternatives --remove $i /usr/bin/vim
	done
}

update_doclink() {
	if [ -L /usr/doc/$pkg  ] ; then
		rm -f /usr/doc/$pkg
	fi
}

if [ "$1" = "remove" ] ; then
	update_alts
	update_docbase
	update_doclink
fi

exit 0