Description¶
Lists the program files in a directory, identified by extension (do, ado, r, rmd, py, ipynb, m, jl, sas, sh, and others; see the extensions variable in the script) plus files named makefile. When generated/manifest[.tag].txt exists, it filters it instead of walking the file tree again.
Usage¶
./automations/04_list_program_files.sh <directory> [tag] [zipfile]directory- Deposit directory, or another directory such asrestricted.tag- Optional suffix for the input and output names.zipfile- Accepted for consistency; not used.
Outputs¶
generated/programs-list[.tag].txt- Program filesgenerated/programs-summary[.tag].txt- One sentence with the count per extension, preceded by an HTML comment with the time it was generated. It fills the generated block inREPLICATION.md, which is replaced each time the report is filled. The replicator’s choice of main/master file is therefore a separate line inREPLICATION.md, below that block.generated/programs-metadata[.tag].csv-filename,lines; 26_update_jira_software.sh reads it to detect the software used