As long as all patches work from a common baseline version of Lua it shouldn't be hard to generate most of the work automatically