]> granicus.if.org Git - strace/commit
maint/update_copyright_years.sh: implement concurrent execution
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 14 Nov 2017 04:34:37 +0000 (05:34 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 14 Nov 2017 20:32:24 +0000 (20:32 +0000)
commit252667882ac0255320df9f194946746a343713b6
treec5a197f3fc6c47bcc521744563fa780597e3b948
parent65b12685807fb1e57e8cd56cd3ccc07c7741fceb
maint/update_copyright_years.sh: implement concurrent execution

Analogous to the way it is done in xlat/gen.sh.

* maint/update_copyright_years.sh (MAX_JOBS): New variable, initialize
it to double the CPU count.
<while [ -n "${1:-}" ]; do case "$1" in>: Add -j option parsing.
(jobs, pids): New variables.
<git ls-files -- "$@" | grep -vFx "$IGNORED_FILES" | while read f; do>:
Execute process_file in background, count background jobs and wait
if there are too many.
maint/update_copyright_years.sh