/[gentoo-x86]/eclass/vim-doc.eclass
Gentoo

Diff of /eclass/vim-doc.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.9 2005/07/06 20:23:20 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.10 2005/12/07 17:53:25 ciaranm Exp $
4# 4#
5# This eclass is used by vim.eclass and vim-plugin.eclass to update 5# This eclass is used by vim.eclass and vim-plugin.eclass to update
6# the documentation tags. This is necessary since vim doesn't look in 6# the documentation tags. This is necessary since vim doesn't look in
7# /usr/share/vim/vimfiles/doc for documentation; it only uses the 7# /usr/share/vim/vimfiles/doc for documentation; it only uses the
8# versioned directory, for example /usr/share/vim/vim62/doc 8# versioned directory, for example /usr/share/vim/vim62/doc
28 [[ -z "$vim" ]] && vim=$(which kvim 2>/dev/null) 28 [[ -z "$vim" ]] && vim=$(which kvim 2>/dev/null)
29 fi 29 fi
30 if [[ -z "$vim" ]]; then 30 if [[ -z "$vim" ]]; then
31 ewarn "No suitable vim binary to rebuild documentation tags" 31 ewarn "No suitable vim binary to rebuild documentation tags"
32 fi 32 fi
33 fi
34
35 # Make vim not try to connect to X. See :help gui-x11-start
36 # in vim for how this evil trickery works.
37 if ! [[ -z "${vim}" ]] ; then
38 ln -s "${vim}" "${T}/tagvim"
39 vim="${T}/tagvim"
33 fi 40 fi
34 41
35 # Install the documentation symlinks into the versioned vim 42 # Install the documentation symlinks into the versioned vim
36 # directory and run :helptags 43 # directory and run :helptags
37 for d in /usr/share/vim/vim[0-9]*; do 44 for d in /usr/share/vim/vim[0-9]*; do
60 einfo "Updating documentation tags in $d" 67 einfo "Updating documentation tags in $d"
61 DISPLAY= $vim -u NONE -U NONE -T xterm -X -n -f \ 68 DISPLAY= $vim -u NONE -U NONE -T xterm -X -n -f \
62 '+set nobackup nomore' \ 69 '+set nobackup nomore' \
63 "+helptags $d/doc" \ 70 "+helptags $d/doc" \
64 '+qa!' </dev/null &>/dev/null 71 '+qa!' </dev/null &>/dev/null
72 rm "${vim}"
65 fi 73 fi
66 done 74 done
67} 75}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20