Skip to content

Commit a6a586f

Browse files
authored
make sipify_all.sh much faster by using background processes
1 parent 6e83630 commit a6a586f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/sipify_all.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ for module in "${modules[@]}"; do
4747
else
4848
path=$(${GP}sed -r 's@/[^/]+$@@' <<< $sipfile)
4949
mkdir -p python/$path
50-
./scripts/sipify.pl $header > python/$sipfile.in
50+
./scripts/sipify.pl $header > python/$sipfile.in &
5151
fi
5252
count=$((count+1))
5353
done < <( ${GP}sed -n -r "s/^%Include (.*\.sip)/${module}\/\1/p" python/${module}/${module}_auto.sip )
5454
done
55+
wait # wait for sipify processes to finish
5556

5657
echo " => $count files sipified! 🍺"
5758

0 commit comments

Comments
 (0)