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 | df93201e31ca47fd929883a70c4da3005563e9e6 (patch) | |
tree | e5ce99c3ee7e2b033ef06e706fda41ca4308e053 /eclass/ghc-package.eclass | |
parent | Don't build GHCi libs for arches that do not support GHCi. (diff) | |
download | gentoo-2-df93201e31ca47fd929883a70c4da3005563e9e6.tar.gz gentoo-2-df93201e31ca47fd929883a70c4da3005563e9e6.tar.bz2 gentoo-2-df93201e31ca47fd929883a70c4da3005563e9e6.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}" } |