updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / vim-showmarks / vimdoc.install
blob595ba7e12226931c69c560be2bc38ba4693cd7b7
1 post_install() {
2     sed -e '1,/^" HelpExtractorDoc:$/d' \
3                 /usr/share/vim/vimfiles/plugin/showmarks.vim > /usr/share/vim/vimfiles/doc/showmarks.txt \
4                 || die "help extraction failed"
5     sed -i -e '/^" HelpExtractor:$/,$d' /usr/share/vim/vimfiles/plugin/showmarks.vim \
6                 || die "help extract remove failed"
7     echo -n "Updating vim help tags..."
8     /usr/bin/vim --noplugins -u NONE -U NONE \
9         --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
10     echo "done."
13 post_upgrade() {
14   post_install $1
17 post_remove() {
18   post_install
21 op=$1
22 shift
24 $op $*