Generate name mapping file