Yields the lines for the automatically-added file header.
()
| 240 | |
| 241 | |
| 242 | def get_header_lines() -> Generator[str, None, None]: |
| 243 | """ |
| 244 | Yields the lines for the automatically-added file header. |
| 245 | """ |
| 246 | |
| 247 | yield ( |
| 248 | f"Copyright 2013-{datetime.now().year} the openage authors. " |
| 249 | "See copying.md for legal info." |
| 250 | ) |
| 251 | |
| 252 | yield "" |
| 253 | yield "Warning: this file was auto-generated; manual changes are futile." |
| 254 | yield "For details, see buildsystem/codegen.cmake and openage/codegen." |
| 255 | yield "" |
| 256 | |
| 257 | |
| 258 | def postprocess_write(parts, data: str) -> str: |