1. post_install() {
  2.     echo -n "Updating vim help tags..."
  3.     /usr/bin/vim --noplugins -u NONE -U NONE \
  4.         --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
  5.     echo "done."
  6. }
  7.  
  8. post_upgrade() {
  9.   post_install $1
  10. }
  11.  
  12. post_remove() {
  13.   post_install
  14. }