First stab at a script to automate this process.

Signed-off-by: The Doctor <drwho@virtadpt.net>