| 1 | # Copyright 1999-2002 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2002 Gentoo Technologies, Inc. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # Author: Martin Schlemmer <azarah@gentoo.org> |
3 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 4 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.14 2003/01/19 20:23:28 azarah Exp $ |
4 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.15 2003/02/02 19:43:33 azarah Exp $ |
| 5 | # This eclass is for general purpose functions that most ebuilds |
5 | # This eclass is for general purpose functions that most ebuilds |
| 6 | # have to implement themselves. |
6 | # have to implement themselves. |
| 7 | # |
7 | # |
| 8 | # NB: If you add anything, please comment it! |
8 | # NB: If you add anything, please comment it! |
| 9 | |
9 | |
| … | |
… | |
| 379 | if [ "${jobs}" -lt 1 ] |
379 | if [ "${jobs}" -lt 1 ] |
| 380 | then |
380 | then |
| 381 | jobs=1 |
381 | jobs=1 |
| 382 | fi |
382 | fi |
| 383 | |
383 | |
| 384 | if [ -n "${ADMINPARAM}" -a "${jobs}" -gt "${ADMINPARAM}" ] |
384 | if [ -n "${ADMINPARAM}" ] |
|
|
385 | then |
|
|
386 | if [ "${jobs}" -gt "${ADMINPARAM}" ] |
| 385 | then |
387 | then |
| 386 | einfo "Setting make jobs to \"-j${ADMINPARAM}\" to ensure successful merge..." |
388 | einfo "Setting make jobs to \"-j${ADMINPARAM}\" to ensure successful merge..." |
| 387 | export MAKEOPTS="${MAKEOPTS} -j${ADMINPARAM}" |
389 | export MAKEOPTS="${MAKEOPTS} -j${ADMINPARAM}" |
| 388 | else |
390 | else |
| 389 | einfo "Setting make jobs to \"-j${jobs}\" to ensure successful merge..." |
391 | einfo "Setting make jobs to \"-j${jobs}\" to ensure successful merge..." |
| 390 | export MAKEOPTS="${MAKEOPTS} -j${jobs}" |
392 | export MAKEOPTS="${MAKEOPTS} -j${jobs}" |
|
|
393 | fi |
| 391 | fi |
394 | fi |
| 392 | } |
395 | } |
| 393 | |
396 | |