Script to generate a list of source files (.sv and .svh)
Usage:
./generate_filelist.sh <target> [output_path]
Arguments:
<target> : Bazel target for which to generate the file list (required).
[output_path] : (Optional) Directory where the output file will be saved.
If not provided, the file will be saved in the current directory.
Output:
Generates a filelist with the name filelist_paths_<sanitized_target>.f
containing a list of paths to the source files (.sv and .svh) related to the given target.
The file starts with +incdir+./macros and includes ./ for each file.
Script to generate a list of source files (.sv and .svh)
Usage:
Arguments:
<target>
: Bazel target for which to generate the file list (required).[output_path]
: (Optional) Directory where the output file will be saved.If not provided, the file will be saved in the current directory.
Output:
Generates a filelist with the name
filelist_paths_<sanitized_target>.f
containing a list of paths to the source files (.sv and .svh) related to the given target.
The file starts with
+incdir+./macros
and includes./
for each file.Examples:
Default behavior (current directory):
Output file:
./filelist_paths_arb_rtl_br_arb_fixed_elab_test.f
Custom output path:
Output file:
/path/to/output/filelist_paths_arb_rtl_br_arb_fixed_elab_test.f