Add manual pages and doc for NetworkManager

This commit is contained in:
Pierre Labastie 2022-11-26 18:47:45 +01:00
parent 256eac6ea5
commit 4d6a0e2d19

View File

@ -288,6 +288,27 @@ ninja</userinput></screen>
<screen role="root"><userinput>ninja install &amp;&amp;
mv -v /usr/share/doc/NetworkManager{,-&NetworkManager-version;}</userinput></screen>
<para>
If you have not passed the <option>-Ddocs=true</option> option to
<command>meson</command>, you can install the pregenerated manual pages
with (as the &root; user):
</para>
<screen role="root"><userinput>for file in $(echo ../man/*.[1578]); do
section=${file##*.} &amp;&amp;
install -vdm 755 /usr/share/man/man$section
install -vm 644 $file /usr/share/man/man$section/
done</userinput></screen>
<para>
Still in case you have not used <option>-Ddocs=true</option>, the
pregenerated HTML documentation can also be installed with (as
the &root; user):
</para>
<screen role="root"
remap="doc"><userinput>cp -Rv ../docs/{api,libnm} /usr/share/doc/NetworkManager-&NetworkManager-version;</userinput></screen>
</sect2>
<sect2 role="commands">