28 lines
780 B
Python
28 lines
780 B
Python
#!/usr/bin/env python3
|
|
"""Append the remaining sections to the design document."""
|
|
from pathlib import Path
|
|
|
|
_HERE = Path(__file__).resolve().parent
|
|
OUT = _HERE / "01-cobol-testgen-core.md"
|
|
content = OUT.read_text(encoding="utf-8")
|
|
content = content.replace("PLACEHOLDER", "")
|
|
|
|
# Read part2 content
|
|
part2 = _HERE / "part2.md"
|
|
content += part2.read_text(encoding="utf-8")
|
|
|
|
# Read part3 content
|
|
part3 = _HERE / "part3.md"
|
|
content += part3.read_text(encoding="utf-8")
|
|
|
|
# Read part4 content
|
|
part4 = _HERE / "part4.md"
|
|
content += part4.read_text(encoding="utf-8")
|
|
|
|
# Read part5 content
|
|
part5 = _HERE / "part5.md"
|
|
content += part5.read_text(encoding="utf-8")
|
|
|
|
OUT.write_text(content, encoding="utf-8")
|
|
print(f"Document complete: {len(content)} chars, {content.count(chr(10))+1} lines")
|