diff options
| author | Filip Kastl <fkastl@suse.cz> | 2025-11-13 14:43:07 +0100 |
|---|---|---|
| committer | Filip Kastl <fkastl@suse.cz> | 2025-11-13 14:43:07 +0100 |
| commit | b2163c8a250b22d1f6e19cffb27dc56e840bb432 (patch) | |
| tree | 43b3c8e686722813879accb96afd58247f26b91f /contrib | |
| parent | 35f05d04f305dc51364469d20879dbea8810b0db (diff) | |
contrib/check-params-in-docs.py: Compensate for r16-5132
r16-5132-g6786a073fcead3 added mention of the '=' variant of the
'--param' command line option to gcc/doc/invoke.texi. This confused
contrib/check-params-in-docs.py. Fix that.
Commiting as obvious.
contrib/ChangeLog:
* check-params-in-docs.py: Start parsing from
@itemx --param=@var{name}=@var{value} instead of
@item --param @var{name}=@var{value}.
Signed-off-by: Filip Kastl <fkastl@suse.cz>
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/check-params-in-docs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/check-params-in-docs.py b/contrib/check-params-in-docs.py index 4f0b4e16a25..3c17d8ba26c 100755 --- a/contrib/check-params-in-docs.py +++ b/contrib/check-params-in-docs.py @@ -61,7 +61,7 @@ help_params = {x:y for x,y in help_params.items() if not target_specific(x)} # Find section in .texi manual with parameters texi = ([x.strip() for x in open(args.texi_file).readlines()]) -texi = dropwhile(lambda x: 'item --param' not in x, texi) +texi = dropwhile(lambda x: 'itemx --param' not in x, texi) texi = takewhile(lambda x: '@node Instrumentation Options' not in x, texi) texi = list(texi)[1:] |
