Rolling add-on releases

Has anyone written a helper script for rolling add-on releases? I'm thinking a command line script that would finalize the version string, bump the version id if appropriate and export the xml for check-in to your VCS of choice. I don't know if it'd be too hard to do myself, but didn't want to reinvent the wheel if someone had this readily available.