summaryrefslogtreecommitdiffstats
path: root/hyperize.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hyperize.sh')
-rwxr-xr-xhyperize.sh9
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
17counter=1 17counter=1
18NUMPROCS=8
19NUMJOBS="\j"
18while [ $counter -le 75 ] 20while [ $counter -le 75 ]
19do 21do
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++))
24done 29done
25 30
31wait -n
32
26 33
27declare -a args 34declare -a args
28 35