diff options
author | Brian Jackson <iggy@gentoo.org> | 2004-04-01 20:50:43 +0000 |
---|---|---|
committer | Brian Jackson <iggy@gentoo.org> | 2004-04-01 20:50:43 +0000 |
commit | e5f68aa4fd0051d0dadd64989dc66ee926d5306a (patch) | |
tree | 4110165effa7de9d3857c4611ba0ea031c311a0e /eclass | |
parent | Bump. (Manifest recommit) (diff) | |
download | gentoo-2-e5f68aa4fd0051d0dadd64989dc66ee926d5306a.tar.gz gentoo-2-e5f68aa4fd0051d0dadd64989dc66ee926d5306a.tar.bz2 gentoo-2-e5f68aa4fd0051d0dadd64989dc66ee926d5306a.zip |
added s390 support to get_number_jobs()
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/eutils.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 4d23abe03c5a..3e21dd4fcfb4 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.86 2004/03/25 01:28:11 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.87 2004/04/01 20:50:43 iggy Exp $ # # Author: Martin Schlemmer <azarah@gentoo.org> # @@ -433,6 +433,10 @@ get_number_of_jobs() { else jobs=2 fi + elif [ "${ARCH}" = "s390" ] + then + # s390 has "# processors : " + jobs="$((`grep "^\# processors" /proc/cpuinfo | sed -e "s/^.*: //"` * 2))" else jobs="$((`grep -c ^cpu /proc/cpuinfo` * 2))" die "Unknown ARCH -- ${ARCH}!" |