File: vim.postrm

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 (21 lines) | stat: -rw-r--r-- 256 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
#! /bin/sh

set -e

update_mime() {
	if command -v update-mime >/dev/null 2>&1 ; then
		update-mime
	fi
}

update_menu() {
	if command -v update-menus >/dev/null 2>&1 ; then
		update-menus
	fi
}

if [ "$1" = "remove" ] ; then
	update_mime
	update_menu
fi