summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-02-18 19:11:02 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-02-18 19:11:02 +0000
commitdccf58535ebe9d3cbe4640e00f3d76f2d47ea120 (patch)
tree03864c69a3aba69320a69ba2a2f927df2299b833 /eclass/vim-doc.eclass
parentx86 sparc stable (diff)
downloadgentoo-2-dccf58535ebe9d3cbe4640e00f3d76f2d47ea120.tar.gz
gentoo-2-dccf58535ebe9d3cbe4640e00f3d76f2d47ea120.tar.bz2
gentoo-2-dccf58535ebe9d3cbe4640e00f3d76f2d47ea120.zip
fix help tags
Diffstat (limited to 'eclass/vim-doc.eclass')
-rw-r--r--eclass/vim-doc.eclass19
1 files changed, 9 insertions, 10 deletions
diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass
index a8b4759d8413..28775efdfd0e 100644
--- a/eclass/vim-doc.eclass
+++ b/eclass/vim-doc.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.6 2005/02/03 21:12:41 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.7 2005/02/18 19:11:02 ciaranm Exp $
#
# This eclass is used by vim.eclass and vim-plugin.eclass to update
# the documentation tags. This is necessary since vim doesn't look in
@@ -21,18 +21,17 @@ update_vim_helptags() {
vimfiles=/usr/share/vim/vimfiles
if [[ $PN != vim-core ]]; then
- # Find a suitable vim binary for updating tags; try the graphical vims
- # before stock vim because the system vim on macos doesn't support
- # :helptags
- vim=$(which gvim 2>/dev/null)
- [[ -z "$vim" ]] && vim=$(which kvim 2>/dev/null)
- [[ -z "$vim" ]] && vim=$(which vim 2>/dev/null)
+ # Find a suitable vim binary for updating tags :helptags
+ if use ppc-macos ; then
+ vim=$(which gvim 2>/dev/null )
+ else
+ vim=$(which vim 2>/dev/null)
+ [[ -z "$vim" ]] && vim=$(which gvim 2>/dev/null)
+ [[ -z "$vim" ]] && vim=$(which kvim 2>/dev/null)
+ fi
if [[ -z "$vim" ]]; then
ewarn "No suitable vim binary to rebuild documentation tags"
fi
- if use ppc-macos && [[ "$vim" == vim ]]; then
- ewarn "Sorry, the MacOS system-installed vim can't rebuild documentation tags"
- fi
fi
# Install the documentation symlinks into the versioned vim