diff options
author | vapier <vapier> | 2007-01-29 05:56:40 +0000 |
---|---|---|
committer | vapier <vapier> | 2007-01-29 05:56:40 +0000 |
commit | 3cc922554b7f5370b2970067395d26c73de1dcf7 (patch) | |
tree | e95785430ecf53bf399920062aa2f11458aa26f3 | |
parent | tweak --update behavior to remove existing locales that the user did not specify (diff) | |
download | locale-gen-3cc922554b7f5370b2970067395d26c73de1dcf7.tar.gz locale-gen-3cc922554b7f5370b2970067395d26c73de1dcf7.tar.bz2 locale-gen-3cc922554b7f5370b2970067395d26c73de1dcf7.zip |
add support for -j# syntax
-rwxr-xr-x | locale-gen | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -44,7 +44,7 @@ show_usage() { } show_version() { local Header="" - local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.20 2007/01/29 05:45:35 vapier Exp $" + local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.21 2007/01/29 05:56:40 vapier Exp $" cvsver=${cvsver##*locale-gen,v } echo "locale-gen-${cvsver%% *}" exit 0 @@ -73,6 +73,7 @@ while [[ -n $1 ]] ; do -A|--all) ALL=$1;; -u|--update) UPDATE=$1;; -j|--jobs) shift; JOBS_MAX=$(($1));; + -j*) JOBS_MAX=$((${1#-j}));; -q|--quiet) ((++QUIET));; -x|--debug) SET_X="true";; -V|--version) show_version;; @@ -82,6 +83,7 @@ while [[ -n $1 ]] ; do esac shift done +[[ ${JOBS_MAX} -lt 1 ]] && JOBS_MAX=1 [[ -n ${SET_X} ]] && set -x KEEP=${KEEP:-${JUST_LIST}} |