read mini files and generate the scripts to cat them together'