Merging multiple WPMS installs into one

Now that the multi domain plugin is in the works, I would like to merge 3 wpms sites into one and use the multiple domain plugin instead of using 3 separate installs.

Is there a script for this? If not, it should be possible by extracting database tables, renaming them and inserting them creating a new blog-id for users. Anybody tried that?