Skip to content
Permalink
Browse files

make sipify_all.sh much faster by using background processes

  • Loading branch information
3nids committed Feb 3, 2018
1 parent 6e83630 commit 0a9367432976a4770310f09f204d5363f19e320f
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/sipify_all.sh
@@ -47,11 +47,12 @@ for module in "${modules[@]}"; do
else
path=$(${GP}sed -r 's@/[^/]+$@@' <<< $sipfile)
mkdir -p python/$path
./scripts/sipify.pl $header > python/$sipfile.in
./scripts/sipify.pl $header > python/$sipfile.in &
fi
count=$((count+1))
done < <( ${GP}sed -n -r "s/^%Include (.*\.sip)/${module}\/\1/p" python/${module}/${module}_auto.sip )
done
wait # wait for sipify processes to finish

echo " => $count files sipified! 🍺"

0 comments on commit 0a93674

Please sign in to comment.
You can’t perform that action at this time.