| #!/bin/sh |
| |
| |
| |
| |
| procgroup="" |
| while test "$#" != 0; do |
| |
| N="${1#-j}" |
| if test "$N" = "$1"; then |
| |
| echo "parallel_xz: warning: unrecognized argument: '$1'" |
| else |
| procgroup="$N" |
| fi |
| shift |
| done |
| |
| |
| test "$procgroup" || exec xargs -r xz |
| test "$procgroup" = 1 && exec xargs -r xz |
| |
| |
| |
| |
| exec xargs -r -n 16 -P $procgroup xz |