2020-01-14 09:42:24 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
|
2018-09-14 15:41:09 +00:00
|
|
|
common_ent_file = configure_file(
|
2019-08-28 08:40:46 +00:00
|
|
|
input: 'common.ent.in',
|
|
|
|
output: '@BASENAME@',
|
2019-11-21 14:27:21 +00:00
|
|
|
configuration: data_conf,
|
2017-11-25 10:39:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
xsltproc_options = [
|
|
|
|
xsltproc,
|
|
|
|
'--output', '@OUTPUT@',
|
|
|
|
'--path', meson.current_build_dir(),
|
|
|
|
'--xinclude',
|
|
|
|
'--nonet',
|
|
|
|
'--stringparam', 'man.output.quietly', '1',
|
|
|
|
'--stringparam', 'funcsynopsis.style', 'ansi',
|
|
|
|
'--stringparam', 'man.th.extra1.suppress', '1',
|
|
|
|
'--stringparam', 'man.authors.section.enabled', '0',
|
|
|
|
'--stringparam', 'man.copyright.section.enabled', '0',
|
2018-10-18 10:50:20 +00:00
|
|
|
'--stringparam', 'man.th.title.max.length', '30',
|
2017-11-25 10:39:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
docbook_xls = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
|
|
|
|
|
|
|
|
mans_xmls = []
|
|
|
|
|
|
|
|
mans = [
|
|
|
|
['NetworkManager', '8'],
|
|
|
|
['NetworkManager.conf', '5'],
|
|
|
|
['nm-online', '1'],
|
|
|
|
['nmcli-examples', '7'],
|
|
|
|
['nmcli', '1'],
|
2018-09-22 07:17:07 +00:00
|
|
|
['nmtui', '1'],
|
|
|
|
['nm-initrd-generator', '8'],
|
2017-11-25 10:39:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if enable_ovs
|
|
|
|
mans += [['nm-openvswitch', '7']]
|
|
|
|
endif
|
|
|
|
|
|
|
|
foreach man: mans
|
|
|
|
input = man[0] + '.xml'
|
|
|
|
content_files += join_paths(meson.current_source_dir(), input)
|
|
|
|
|
|
|
|
output = '@0@.@1@'.format(man[0], man[1])
|
|
|
|
|
|
|
|
custom_target(
|
|
|
|
output,
|
|
|
|
input: input,
|
|
|
|
output: output,
|
|
|
|
command: xsltproc_options + [docbook_xls, '@INPUT@'],
|
2018-09-14 15:41:09 +00:00
|
|
|
depend_files: common_ent_file,
|
2017-11-25 10:39:06 +00:00
|
|
|
install: true,
|
2018-10-18 10:50:20 +00:00
|
|
|
install_dir: join_paths(nm_mandir, 'man' + man[1]),
|
2017-11-25 10:39:06 +00:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
if enable_introspection
|
|
|
|
mans = [
|
2020-05-28 11:51:56 +00:00
|
|
|
['nm-settings-keyfile', '5', nm_property_infos_xml['keyfile']],
|
2020-05-29 08:21:07 +00:00
|
|
|
['nm-settings', '5', nm_settings_docs_xml['dbus']],
|
2017-11-25 10:39:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if enable_ifcfg_rh
|
2020-05-28 11:51:56 +00:00
|
|
|
mans += [['nm-settings-ifcfg-rh', '5', nm_property_infos_xml['ifcfg-rh']]]
|
2017-11-25 10:39:06 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
foreach man: mans
|
|
|
|
output = man[0] + '.xml'
|
|
|
|
|
|
|
|
input = custom_target(
|
|
|
|
output,
|
|
|
|
input: man[2],
|
|
|
|
output: output,
|
2018-10-18 10:50:20 +00:00
|
|
|
command: xsltproc_options + [join_paths(meson.current_source_dir(), man[0] + '.xsl'), '@INPUT@'],
|
2017-11-25 10:39:06 +00:00
|
|
|
)
|
|
|
|
content_files += input.full_path()
|
|
|
|
|
|
|
|
output = '@0@.@1@'.format(man[0], man[1])
|
|
|
|
|
|
|
|
custom_target(
|
|
|
|
output,
|
|
|
|
input: input,
|
|
|
|
output: output,
|
|
|
|
command: xsltproc_options + [docbook_xls, '@INPUT@'],
|
|
|
|
install: true,
|
2018-10-18 10:50:20 +00:00
|
|
|
install_dir: join_paths(nm_mandir, 'man' + man[1]),
|
2017-11-25 10:39:06 +00:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
endif
|