summaryrefslogtreecommitdiffstats
path: root/abs/extra/gvim/gvim.install
blob: f49c345d02fdd2b2dc31ad30d1babbd0d55ec43d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
post_install() {
  echo "Updating desktop and mime database..."
  update-desktop-database -q
  echo -n "Updating vim help tags..."
  usr/bin/vim --noplugins -u NONE -U NONE \
    --cmd ":helptags usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1
  echo "done."
}

post_upgrade() {
  post_install $1
}

post_remove() {
  echo -n "Updating desktop and mime database..."
  update-desktop-database
  echo "done."
}

op=$1
shift
[ "$(type -t "$op")" = "function" ] && $op "$@"

# vim:set ts=2 sw=2 et ft=sh: