diff options
Diffstat (limited to 'hyperize.sh')
-rwxr-xr-x | hyperize.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hyperize.sh b/hyperize.sh index 8a8c0ac..8ee4a34 100755 --- a/hyperize.sh +++ b/hyperize.sh | |||
@@ -15,14 +15,21 @@ rm -f export_tmp/* | |||
15 | 15 | ||
16 | 16 | ||
17 | counter=1 | 17 | counter=1 |
18 | NUMPROCS=8 | ||
19 | NUMJOBS="\j" | ||
18 | while [ $counter -le 75 ] | 20 | while [ $counter -le 75 ] |
19 | do | 21 | do |
22 | while (( ${NUMJOBS@P} >= NUMPROCS )); do | ||
23 | wait -n | ||
24 | done | ||
20 | offset=${shakeOffsets[counter-1]} | 25 | offset=${shakeOffsets[counter-1]} |
21 | file=`printf "export_tmp/%s.png" $counter` | 26 | file=`printf "export_tmp/%s.png" $counter` |
22 | inkscape -z -e $file -a $offset $SOURCESVG | 27 | inkscape -z -e $file -a $offset $SOURCESVG & |
23 | ((counter++)) | 28 | ((counter++)) |
24 | done | 29 | done |
25 | 30 | ||
31 | wait -n | ||
32 | |||
26 | 33 | ||
27 | declare -a args | 34 | declare -a args |
28 | 35 | ||