diff options
author | Duncan Coutts <dcoutts@gentoo.org> | 2006-03-01 12:58:01 +0000 |
---|---|---|
committer | Duncan Coutts <dcoutts@gentoo.org> | 2006-03-01 12:58:01 +0000 |
commit | 7c8c180614016d23ab62b487852adf7a2269e457 (patch) | |
tree | 24a69199997dfb614e6775966b9d5feb49bda879 /eclass/ghc-package.eclass | |
parent | Don't build GHCi libs for arches that do not support GHCi. (diff) | |
download | historical-7c8c180614016d23ab62b487852adf7a2269e457.tar.gz historical-7c8c180614016d23ab62b487852adf7a2269e457.tar.bz2 historical-7c8c180614016d23ab62b487852adf7a2269e457.zip |
Simplify the way we find the ghc version.
Just use --numeric-version rather than --version | sed '...'
Diffstat (limited to 'eclass/ghc-package.eclass')
-rw-r--r-- | eclass/ghc-package.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass index 5a282b23d10f..1a25263621b8 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.15 2005/09/13 12:51:30 kosmikus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.16 2006/03/01 12:58:01 dcoutts Exp $ # # Author: Andres Loeh <kosmikus@gentoo.org> # @@ -42,7 +42,7 @@ ghc-getghcpkgbin() { _GHC_VERSION_CACHE="" ghc-version() { if [[ -z "${_GHC_VERSION_CACHE}" ]]; then - _GHC_VERSION_CACHE="$($(ghc-getghc) --version | sed 's:^.*version ::')" + _GHC_VERSION_CACHE="$($(ghc-getghc) --numeric-version)" fi echo "${_GHC_VERSION_CACHE}" } |