summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Kelly <pioto@gentoo.org>2007-03-13 01:07:08 +0000
committerMike Kelly <pioto@gentoo.org>2007-03-13 01:07:08 +0000
commit593bcc319d58bd8613c2b22fe79daab75ccaab04 (patch)
tree4ea4433c22327a8b689d87edefaddab67efa44e9 /eclass
parentReplacing text-markup herd with the new sgml herd. (diff)
downloadgentoo-2-593bcc319d58bd8613c2b22fe79daab75ccaab04.tar.gz
gentoo-2-593bcc319d58bd8613c2b22fe79daab75ccaab04.tar.bz2
gentoo-2-593bcc319d58bd8613c2b22fe79daab75ccaab04.zip
Don't use `which`, use `type -P`.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vim-doc.eclass8
-rw-r--r--eclass/vim.eclass4
2 files changed, 6 insertions, 6 deletions
diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass
index 0571980d4619..7bb6cd05feb0 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.12 2006/10/25 20:18:53 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.13 2007/03/13 01:07:08 pioto 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
@@ -20,9 +20,9 @@ update_vim_helptags() {
if [[ $PN != vim-core ]]; then
# Find a suitable vim binary for updating tags :helptags
- vim=$(which vim 2>/dev/null)
- [[ -z "$vim" ]] && vim=$(which gvim 2>/dev/null)
- [[ -z "$vim" ]] && vim=$(which kvim 2>/dev/null)
+ vim=$(type -P vim 2>/dev/null)
+ [[ -z "$vim" ]] && vim=$(type -P gvim 2>/dev/null)
+ [[ -z "$vim" ]] && vim=$(type -P kvim 2>/dev/null)
if [[ -z "$vim" ]]; then
ewarn "No suitable vim binary to rebuild documentation tags"
fi
diff --git a/eclass/vim.eclass b/eclass/vim.eclass
index d6d93b0e5f44..b51784a6f219 100644
--- a/eclass/vim.eclass
+++ b/eclass/vim.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.160 2007/02/22 03:23:38 pioto Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.161 2007/03/13 01:07:08 pioto Exp $
# Authors:
# Ryan Phillips <rphillips@gentoo.org>
@@ -468,7 +468,7 @@ vim_src_compile() {
# Let Portage do the stripping. Some people like that.
if version_is_at_least "7.0_beta" ; then
- export ac_cv_prog_STRIP="$(which true ) faking strip"
+ export ac_cv_prog_STRIP="$(type -P true ) faking strip"
fi
myconf="${myconf} --with-modified-by=Gentoo-${PVR}"