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
commit4f0d8b64cce0a0aec3f9fbf4cb179ad362efaf4e (patch)
treed43d8ec909a34dfb0a9a5fcfe585251cb20da3d2 /eclass/haskell-cabal.eclass
parentMarked stable on x86. (diff)
downloadhistorical-4f0d8b64cce0a0aec3f9fbf4cb179ad362efaf4e.tar.gz
historical-4f0d8b64cce0a0aec3f9fbf4cb179ad362efaf4e.tar.bz2
historical-4f0d8b64cce0a0aec3f9fbf4cb179ad362efaf4e.zip
replaced "which" by "type -P"
Diffstat (limited to 'eclass/haskell-cabal.eclass')
-rw-r--r--eclass/haskell-cabal.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
index 3996a1213542..8826a03bffca 100644
--- a/eclass/haskell-cabal.eclass
+++ b/eclass/haskell-cabal.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.9 2007/01/15 13:58:13 kosmikus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.10 2007/03/13 12:02:04 kosmikus Exp $
#
# Original authors: Andres Loeh <kosmikus@gentoo.org>
# Duncan Coutts <dcoutts@gentoo.org>
@@ -173,7 +173,7 @@ cabal-pkg() {
local err
if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then
- sed -i "s|$(ghc-getghcpkg)|$(which true)|" .setup-config
+ sed -i "s|$(ghc-getghcpkg)|$(type -P true)|" .setup-config
./setup register || die "setup register failed"
if [[ -f .installed-pkg-config ]]; then
ghc-setup-pkg .installed-pkg-config