vapier      15/10/14 13:48:21

  Modified:             locale-gen
  Log:
  locale-gen: default --jobs to ncpus online

Revision  Changes    Path
1.40                 src/patchsets/glibc/extra/locale/locale-gen

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/extra/locale/locale-gen?rev=1.40&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/extra/locale/locale-gen?rev=1.40&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/extra/locale/locale-gen?r1=1.39&r2=1.40

Index: locale-gen
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- locale-gen  29 Aug 2015 23:05:43 -0000      1.39
+++ locale-gen  14 Oct 2015 13:48:21 -0000      1.40
@@ -52,7 +52,7 @@
 }
 show_version() {
        local b="(" a=")"
-       local cvsver="$Revision: 1.39 $b $Date: 2015/08/29 23:05:43 $a"
+       local cvsver="$Revision: 1.40 $b $Date: 2015/10/14 13:48:21 $a"
        echo "locale-gen-${cvsver//: }"
        exit 0
 }
@@ -68,7 +68,7 @@
 ALL=""
 UPDATE=""
 GENERATE=""
-JOBS_MAX=1
+JOBS_MAX=""
 QUIET=0
 SET_X=""
 LOCALE_ARCHIVE=true
@@ -93,6 +93,10 @@
        esac
        shift
 done
+if [[ -z ${JOBS_MAX} ]] ; then
+       JOBS_MAX=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
+       : ${JOBS_MAX:=1}
+fi
 [[ ${JOBS_MAX} -lt 1 ]] && JOBS_MAX=1
 [[ -n ${SET_X} ]] && set -x
 : ${KEEP:=${JUST_LIST}}




Reply via email to