Description¶
Fills the placeholders in REPLICATION.md with the outputs of the earlier scanners.
Creates a stand-in for every scanner output that is missing (for example “Check not run or no packages found.”), so that every placeholder gets a value.
Builds
generated/software-warnings.mdfrom the R and Python warning notes, andgenerated/pii-summary.mdfrom the PII scan summary.Copies the most recent duplicate-file, zero-byte and line-count reports to their undated names.
Runs
tools/replace_placeholders.pyonREPLICATION.md. The report drives the lookup: each{{ name }}placeholder is filled from the filename, searched first in the generated directory and then as a path from the current directory. Any file type can be included this way, not only.md/.txtfiles ingenerated/; a placeholder that matches no file (such as{{ CRITICAL }}) is left as is. Everything from the line “Automatically Generated Appendices” on is dropped. The result isgenerated/REPLICATION-filled.md.Fills
template/REPLICATION_appendix.mdintogenerated/REPLICATION_appendix.md. It is not appended to the report.
25_replace_report.sh then puts the filled report in place.
Usage¶
./automations/24_amend_report.sh [directory]directory- Directory with the generated files (default:generated).
Environment Variables¶
SkipProcessing- Whenyes, the script exits immediately.PYTHON- Python command to use (default:python3, thenpython).