Finish writing the resource build tool.