shrc: define mkpatch