updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vim-doc-pl / vimdoc.install
blob0a5b326be6f5715235263d20836c44a3ddccf61f
1 vimdocinstall() {
2         echo -n "updating Vim help tags... "
3         _version_vimruntime=$(pacman -Q vim-runtime | awk \
4         '{$0=gensub(/^[^0-9]*([0-9])\.([0-9]).*/,"\\1\\2","1");print }')
5         /usr/bin/vim --noplugin -u NONE -U NONE \
6                 --cmd ":helptags /usr/share/vim/vim${_version_vimruntime}/doc" --cmd ":q" > /dev/null 2>&1
7         echo "done."
10 post_install() {
11         vimdocinstall
14 post_upgrade() {
15         vimdocinstall
18 post_remove() {
19         vimdocinstall
22 op=$1
23 shift
25 $op $*