/[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.6 Revision 1.7
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.6 2005/02/03 21:12:41 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.7 2005/02/18 19:11:02 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
19 19
20 # This is where vim plugins are installed 20 # This is where vim plugins are installed
21 vimfiles=/usr/share/vim/vimfiles 21 vimfiles=/usr/share/vim/vimfiles
22 22
23 if [[ $PN != vim-core ]]; then 23 if [[ $PN != vim-core ]]; then
24 # Find a suitable vim binary for updating tags; try the graphical vims 24 # Find a suitable vim binary for updating tags :helptags
25 # before stock vim because the system vim on macos doesn't support 25 if use ppc-macos ; then
26 # :helptags
27 vim=$(which gvim 2>/dev/null) 26 vim=$(which gvim 2>/dev/null )
27 else
28 vim=$(which vim 2>/dev/null)
29 [[ -z "$vim" ]] && vim=$(which gvim 2>/dev/null)
28 [[ -z "$vim" ]] && vim=$(which kvim 2>/dev/null) 30 [[ -z "$vim" ]] && vim=$(which kvim 2>/dev/null)
29 [[ -z "$vim" ]] && vim=$(which vim 2>/dev/null) 31 fi
30 if [[ -z "$vim" ]]; then 32 if [[ -z "$vim" ]]; then
31 ewarn "No suitable vim binary to rebuild documentation tags" 33 ewarn "No suitable vim binary to rebuild documentation tags"
32 fi
33 if use ppc-macos && [[ "$vim" == vim ]]; then
34 ewarn "Sorry, the MacOS system-installed vim can't rebuild documentation tags"
35 fi 34 fi
36 fi 35 fi
37 36
38 # Install the documentation symlinks into the versioned vim 37 # Install the documentation symlinks into the versioned vim
39 # directory and run :helptags 38 # directory and run :helptags

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20