Skip to content

Commit

Permalink
make sipify_all.sh much faster by using background processes
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 3, 2018
1 parent 6e83630 commit a6a586f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/sipify_all.sh
Expand Up @@ -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! 🍺"

Expand Down

0 comments on commit a6a586f

Please sign in to comment.