/[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.13 Revision 1.14
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.13 2007/03/13 01:07:08 pioto Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.14 2007/05/14 19:52:06 pioto 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 fi 28 fi
29 fi 29 fi
30 30
31 # Make vim not try to connect to X. See :help gui-x11-start 31 # Make vim not try to connect to X. See :help gui-x11-start
32 # in vim for how this evil trickery works. 32 # in vim for how this evil trickery works.
33 if ! [[ -z "${vim}" ]] ; then 33 if [[ -n "${vim}" ]] ; then
34 ln -s "${vim}" "${T}/tagvim" 34 ln -s "${vim}" "${T}/tagvim"
35 vim="${T}/tagvim" 35 vim="${T}/tagvim"
36 fi 36 fi
37 37
38 # Install the documentation symlinks into the versioned vim 38 # Install the documentation symlinks into the versioned vim
63 einfo "Updating documentation tags in $d" 63 einfo "Updating documentation tags in $d"
64 DISPLAY= $vim -u NONE -U NONE -T xterm -X -n -f \ 64 DISPLAY= $vim -u NONE -U NONE -T xterm -X -n -f \
65 '+set nobackup nomore' \ 65 '+set nobackup nomore' \
66 "+helptags $d/doc" \ 66 "+helptags $d/doc" \
67 '+qa!' </dev/null &>/dev/null 67 '+qa!' </dev/null &>/dev/null
68 rm "${vim}"
69 fi 68 fi
70 done 69 done
70
71 [[ -n "${vim}" ]] && rm "${vim}"
71} 72}

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20