Here is a tool that I have used with some success:
It will allow you to script out a transform operation and then mass-apply it to a set of repositories.
These tools effectively handle the main execution loop described in Christophe's answer.