generate merge file.