Revised utils/generate-static script