/[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.12 Revision 1.13
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.12 2006/10/25 20:18:53 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.13 2007/03/13 01:07:08 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
18 # This is where vim plugins are installed 18 # This is where vim plugins are installed
19 vimfiles="${ROOT}"/usr/share/vim/vimfiles 19 vimfiles="${ROOT}"/usr/share/vim/vimfiles
20 20
21 if [[ $PN != vim-core ]]; then 21 if [[ $PN != vim-core ]]; then
22 # Find a suitable vim binary for updating tags :helptags 22 # Find a suitable vim binary for updating tags :helptags
23 vim=$(which vim 2>/dev/null) 23 vim=$(type -P vim 2>/dev/null)
24 [[ -z "$vim" ]] && vim=$(which gvim 2>/dev/null) 24 [[ -z "$vim" ]] && vim=$(type -P gvim 2>/dev/null)
25 [[ -z "$vim" ]] && vim=$(which kvim 2>/dev/null) 25 [[ -z "$vim" ]] && vim=$(type -P kvim 2>/dev/null)
26 if [[ -z "$vim" ]]; then 26 if [[ -z "$vim" ]]; then
27 ewarn "No suitable vim binary to rebuild documentation tags" 27 ewarn "No suitable vim binary to rebuild documentation tags"
28 fi 28 fi
29 fi 29 fi
30 30

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

  ViewVC Help
Powered by ViewVC 1.1.20