Slightly more fleshed out (but still basically stubbed) generation of patched files.