summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDanny van Dyk <kugelfang@gentoo.org>2007-03-13 00:40:54 +0000
committerDanny van Dyk <kugelfang@gentoo.org>2007-03-13 00:40:54 +0000
commit2620a0aad00b49710cd1e2aa97d0288f06125d36 (patch)
tree5e3e051ee3c70fc3f3e9942ad549edd0b1ab6cea /eclass
parentReplaced text-markup by tex (text-markup split). (diff)
downloadgentoo-2-2620a0aad00b49710cd1e2aa97d0288f06125d36.tar.gz
gentoo-2-2620a0aad00b49710cd1e2aa97d0288f06125d36.tar.bz2
gentoo-2-2620a0aad00b49710cd1e2aa97d0288f06125d36.zip
QA: which -> type -P
Diffstat (limited to 'eclass')
-rw-r--r--eclass/fortran.eclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/fortran.eclass b/eclass/fortran.eclass
index 2a23919b0560..6cec232ad765 100644
--- a/eclass/fortran.eclass
+++ b/eclass/fortran.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/fortran.eclass,v 1.16 2006/06/05 08:51:09 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/fortran.eclass,v 1.17 2007/03/13 00:40:54 kugelfang Exp $
#
# Author: Danny van Dyk <kugelfang@gentoo.org>
#
@@ -49,26 +49,26 @@ need_fortran() {
for PROFILE in $@; do
case ${PROFILE} in
gfortran)
- if [ -x "$(which gfortran 2> /dev/null)" ]; then
+ if [ -x "$(type -P gfortran 2> /dev/null)" ]; then
AVAILABLE="${AVAILABLE} gfortran"
fi
;;
g77)
- if [ -x "$(which g77 2> /dev/null)" ]; then
+ if [ -x "$(type -P g77 2> /dev/null)" ]; then
AVAILABLE="${AVAILABLE} g77"
fi
;;
f2c)
- if [ -x "$(which f2c 2> /dev/null)" ]; then
+ if [ -x "$(type -P f2c 2> /dev/null)" ]; then
AVAILABLE="${AVAILABLE} f2c"
fi
;;
ifc)
case ${ARCH} in
x86|ia64|amd64)
- if [ -x "$(which ifort 2> /dev/null)" ]; then
+ if [ -x "$(type -P ifort 2> /dev/null)" ]; then
AVAILABLE="${AVAILABLE} ifort"
- elif [ -x "$(which ifc 2> /dev/null)" ]; then
+ elif [ -x "$(type -P ifc 2> /dev/null)" ]; then
AVAILABLE="${AVAILABLE} ifc"
fi
;;