n.b. this should really go in an 'openpatch' project somewhere because I also want to rewrite srpmproc and use shared libs from mship. also populate openpatch.dev at some point