summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-07 05:59:20 +0000
committerMike Frysinger <vapier@gentoo.org>2012-06-07 05:59:20 +0000
commit44b3c612f92cdc22699d258d6929e9b368743e76 (patch)
tree0dfbe6280bcb09190d4d0cc6a731acafdadaa38d /eclass
parentInherit new multiprocessing for makeopts_jobs. (diff)
downloadgentoo-2-44b3c612f92cdc22699d258d6929e9b368743e76.tar.gz
gentoo-2-44b3c612f92cdc22699d258d6929e9b368743e76.tar.bz2
gentoo-2-44b3c612f92cdc22699d258d6929e9b368743e76.zip
makeopts_jobs has been moved to multiprocessing.eclass, and all consumers should be upated now
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass22
1 files changed, 1 insertions, 21 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index b6dd9a5798f5..fdd26ae44c67 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.395 2012/06/06 15:37:50 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.396 2012/06/07 05:59:20 vapier Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -1379,26 +1379,6 @@ use_if_iuse() {
# otherwise echo [false output][false suffix] (defaults to "no").
usex() { use "$1" && echo "${2-yes}$4" || echo "${3-no}$5" ; } #382963
-# @FUNCTION: makeopts_jobs
-# @USAGE: [${MAKEOPTS}]
-# @DESCRIPTION:
-# Searches the arguments (defaults to ${MAKEOPTS}) and extracts the jobs number
-# specified therein. Useful for running non-make tools in parallel too.
-# i.e. if the user has MAKEOPTS=-j9, this will show "9".
-# We can't return the number as bash normalizes it to [0, 255]. If the flags
-# haven't specified a -j flag, then "1" is shown as that is the default `make`
-# uses. Since there's no way to represent infinity, we return 999 if the user
-# has -j without a number.
-makeopts_jobs() {
- [[ $# -eq 0 ]] && set -- ${MAKEOPTS}
- # This assumes the first .* will be more greedy than the second .*
- # since POSIX doesn't specify a non-greedy match (i.e. ".*?").
- local jobs=$(echo " $* " | sed -r -n \
- -e 's:.*[[:space:]](-j|--jobs[=[:space:]])[[:space:]]*([0-9]+).*:\2:p' \
- -e 's:.*[[:space:]](-j|--jobs)[[:space:]].*:999:p')
- echo ${jobs:-1}
-}
-
# @FUNCTION: prune_libtool_files
# @USAGE: [--all]
# @DESCRIPTION: