chiark / gitweb /
protogen: factor out some common code.