Automating MovableType plugin migration during upgrades

MovableType 4.23 was released, and I had to upgrade a couple of installs.

As previously mentioned, I use (and recommend) a fairly customized server layout to handle my MovableType installations.

I hacked together this quick Python script to create symlinks (as needed) for MovableType plugins.

Obvious note, this ONLY works if you use the same directory layout as me.

The script essentially does this

1. loops a shared _plugins dir to figure out what plugins you have, and which need to support plugin and mt-static links
2. chdirs into _current to create necessary relative symlinks

simple, eh?

I’ve placed the script in one of my svn repositories:

As of the writing of this article, the current version is in tags/v0.01