compile_sourcelist.sh¶
Generates a list of all Pascal source files in the project.
Overview¶
compile_sourcelist.sh scans the parent directory for all .pas files and writes their paths to sources.list. This file can be used by other tools or scripts that need a manifest of Pascal source files.
Prerequisites¶
findmust be available.- Must be run from a subdirectory of the project root (it searches
..).
Inputs¶
The entire project directory tree (searched recursively for *.pas files).
Outputs¶
| File | Description |
|---|---|
sources.list |
A newline-delimited list of absolute paths to all .pas files found. |
Behavior¶
- Uses
findto locate all files matching*.pasin the parent directory. - Writes the results to
sources.listin the current working directory. - Exits with code 0.
Notes¶
- This script is not currently listed in the
compile.shbuild pipeline steps. It may be used as a standalone utility or by external tooling.