diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-09-05 08:58:33 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-09-05 10:33:42 +0200 |
commit | 20bb9bde243a676607855fcfb6edd7130815c0d6 (patch) | |
tree | be65055e9a57d7c7d018ffe5d7541283732c055c /libnm | |
parent | 176c3cc30a18606a19e4159c6d6216ed9932031b (diff) | |
download | NetworkManager-20bb9bde243a676607855fcfb6edd7130815c0d6.tar.gz |
libnm/generate-plugin-docs: ignore files without a setting name
If no setting name is found in the file, it means that the file
possibly contains a setting superclass (e.g. NMSettingIPConfig)
without any property definition; just ignore it.
Diffstat (limited to 'libnm')
-rwxr-xr-x | libnm/generate-plugin-docs.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libnm/generate-plugin-docs.pl b/libnm/generate-plugin-docs.pl index 405c6e1164..24912a0372 100755 --- a/libnm/generate-plugin-docs.pl +++ b/libnm/generate-plugin-docs.pl @@ -75,9 +75,11 @@ write_header(); foreach my $c_file (@source_files) { my $path = "$srcdir/$c_file"; my $setting_name = get_setting_name($path); - write_item("<setting name=\"$setting_name\">"); - scan_doc_comments($path, $start_tag, $end_tag); - write_item("</setting>"); + if ($setting_name) { + write_item("<setting name=\"$setting_name\">"); + scan_doc_comments($path, $start_tag, $end_tag); + write_item("</setting>"); + } } # write XML footer |