added script to generate per-building file