summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2007-03-13 12:02:04 +0000
committerAndres Loeh <kosmikus@gentoo.org>2007-03-13 12:02:04 +0000
commit3b90544ffbeec90d1a98ba80ee5e82a6373bbc7c (patch)
treeaf90a3655966841dd32058a513e6afbd4240850f /eclass/ghc-package.eclass
parentx86 stable (diff)
downloadgentoo-2-3b90544ffbeec90d1a98ba80ee5e82a6373bbc7c.tar.gz
gentoo-2-3b90544ffbeec90d1a98ba80ee5e82a6373bbc7c.tar.bz2
gentoo-2-3b90544ffbeec90d1a98ba80ee5e82a6373bbc7c.zip
replaced "which" by "type -P"
Diffstat (limited to 'eclass/ghc-package.eclass')
-rw-r--r--eclass/ghc-package.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass
index 1aa4db011dd3..cdc3da120cc6 100644
--- a/eclass/ghc-package.eclass
+++ b/eclass/ghc-package.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/ghc-package.eclass,v 1.21 2007/03/11 15:53:31 kolmodin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.22 2007/03/13 12:02:04 kosmikus Exp $
#
# Author: Andres Loeh <kosmikus@gentoo.org>
# Maintained by: Haskell herd <haskell@gentoo.org>
@@ -16,12 +16,12 @@ PATH="/usr/bin:/opt/ghc/bin:${PATH}"
# for later configuration using environment variables/
# returns the name of the ghc executable
ghc-getghc() {
- echo "$(which ghc)"
+ type -P ghc
}
# returns the name of the ghc-pkg executable
ghc-getghcpkg() {
- echo "$(which ghc-pkg)"
+ type -P ghc-pkg
}
# returns the name of the ghc-pkg binary (ghc-pkg