From 20bb9bde243a676607855fcfb6edd7130815c0d6 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 5 Sep 2017 08:58:33 +0200 Subject: 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. --- libnm/generate-plugin-docs.pl | 8 +++++--- 1 file 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(""); - scan_doc_comments($path, $start_tag, $end_tag); - write_item(""); + if ($setting_name) { + write_item(""); + scan_doc_comments($path, $start_tag, $end_tag); + write_item(""); + } } # write XML footer -- cgit v1.2.1