Add a script to generate a patch that can be applied to a src tree

Because that's what espie@ wants, and is likely a good idea.