summaryrefslogtreecommitdiff
path: root/libnm/generate-plugin-docs.pl
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-11-16 15:36:18 -0500
committerDan Winship <danw@redhat.com>2014-11-19 09:24:10 -0500
commit36156b70dc06fb235ee91f3f58942c64583fa7ca (patch)
tree2accc58666cb9655ab1f02d9483e03ef374ddc05 /libnm/generate-plugin-docs.pl
parent780d8bf2fe5ce6c2d391a87f99691e4d7db03104 (diff)
downloadNetworkManager-36156b70dc06fb235ee91f3f58942c64583fa7ca.tar.gz
libnm: Override parts of nm-setting-docs.xml
Add "---dbus---" sections to the NMSetting property docs, in the same style as the plugin docs, parse them out into a file "nm-setting-docs-overrides.xml", and use them to override the GObject property docs in nm-setting-docs.xml. This lets us put more D-Bus-specific information in the setting docs, without cluttering up the property docs, and it also lets us document dbus-only properties.
Diffstat (limited to 'libnm/generate-plugin-docs.pl')
-rwxr-xr-xlibnm/generate-plugin-docs.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/generate-plugin-docs.pl b/libnm/generate-plugin-docs.pl
index 53edb48cd2..ea97a2224f 100755
--- a/libnm/generate-plugin-docs.pl
+++ b/libnm/generate-plugin-docs.pl
@@ -55,7 +55,6 @@ my @data;
my $fo;
(scalar @ARGV == 3) or die "Usage: $0 <plugin> <srcdir> <output-xml-file>\n";
-($ARGV[0] eq "keyfile" || $ARGV[0] eq "ifcfg-rh") or die "Allowed <plugin> values: keyfile, ifcfg-rh\n";
my ($plugin, $srcdir, $output) = @ARGV;
my $start_tag = "---$plugin---\\s*\$";
my $end_tag = '---end---';
@@ -155,6 +154,7 @@ sub process_data {
my $exam = $yaml_data->{example} // "";
my $desc = $yaml_data->{description} // "";
+ chomp($name, $var, $format, $values, $def, $exam, $desc);
escape_xml_chars($name, $var, $format, $values, $def, $exam, $desc);
my $foo = sprintf("<property name=\"%s\" variable=\"%s\" format=\"%s\" values=\"%s\" ".
"default=\"%s\" example=\"%s\" description=\"%s\"/>",