mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
meson/man: allow man pages to use multiple conditions
This way the man pages are installed only when the corresponding binary is installed. The conditions in man pages and man/rules/meson.build are adjusted to match the conditions for units in units/meson.build.
This commit is contained in:
parent
4d34622d22
commit
ec3cf73f30
@ -59,7 +59,15 @@ foreach tuple : manpages
|
||||
|
||||
mandirn = get_option('mandir') / ('man' + section)
|
||||
|
||||
if condition == '' or conf.get(condition) == 1
|
||||
have = true
|
||||
foreach word : condition.split()
|
||||
if conf.get(word) != 1
|
||||
have = false
|
||||
break
|
||||
endif
|
||||
endforeach
|
||||
|
||||
if have
|
||||
file = files(tuple[0] + '.xml')
|
||||
source_xml_files += file
|
||||
if tuple[0].startswith('org.freedesktop.')
|
||||
|
@ -900,14 +900,14 @@ manpages = [
|
||||
['systemd-bless-boot.service',
|
||||
'8',
|
||||
['systemd-bless-boot'],
|
||||
'ENABLE_BOOTLOADER'],
|
||||
'ENABLE_BOOTLOADER HAVE_BLKID'],
|
||||
['systemd-boot-check-no-failures.service',
|
||||
'8',
|
||||
['systemd-boot-check-no-failures'],
|
||||
''],
|
||||
['systemd-boot-random-seed.service', '8', [], 'ENABLE_BOOTLOADER'],
|
||||
['systemd-boot', '7', ['sd-boot'], 'ENABLE_BOOTLOADER'],
|
||||
['systemd-bsod.service', '8', ['systemd-bsod'], 'HAVE_QRENCODE'],
|
||||
['systemd-bsod.service', '8', ['systemd-bsod'], 'HAVE_QRENCODE ENABLE_INITRD'],
|
||||
['systemd-cat', '1', [], ''],
|
||||
['systemd-cgls', '1', [], ''],
|
||||
['systemd-cgtop', '1', [], ''],
|
||||
@ -962,15 +962,15 @@ manpages = [
|
||||
['systemd-journal-gatewayd.service',
|
||||
'8',
|
||||
['systemd-journal-gatewayd', 'systemd-journal-gatewayd.socket'],
|
||||
'HAVE_MICROHTTPD'],
|
||||
'ENABLE_REMOTE HAVE_MICROHTTPD'],
|
||||
['systemd-journal-remote.service',
|
||||
'8',
|
||||
['systemd-journal-remote', 'systemd-journal-remote.socket'],
|
||||
'HAVE_MICROHTTPD'],
|
||||
'ENABLE_REMOTE HAVE_MICROHTTPD'],
|
||||
['systemd-journal-upload.service',
|
||||
'8',
|
||||
['systemd-journal-upload'],
|
||||
'HAVE_MICROHTTPD'],
|
||||
'ENABLE_REMOTE HAVE_LIBCURL'],
|
||||
['systemd-journald.service',
|
||||
'8',
|
||||
['systemd-journald',
|
||||
@ -1016,7 +1016,7 @@ manpages = [
|
||||
'systemd-pcrlock-make-policy.service',
|
||||
'systemd-pcrlock-secureboot-authority.service',
|
||||
'systemd-pcrlock-secureboot-policy.service'],
|
||||
'HAVE_TPM2'],
|
||||
'ENABLE_BOOTLOADER HAVE_OPENSSL HAVE_TPM2'],
|
||||
['systemd-pcrphase.service',
|
||||
'8',
|
||||
['systemd-pcrextend',
|
||||
@ -1025,7 +1025,7 @@ manpages = [
|
||||
'systemd-pcrmachine.service',
|
||||
'systemd-pcrphase-initrd.service',
|
||||
'systemd-pcrphase-sysinit.service'],
|
||||
'ENABLE_BOOTLOADER'],
|
||||
'ENABLE_BOOTLOADER HAVE_OPENSSL HAVE_TPM2'],
|
||||
['systemd-portabled.service', '8', ['systemd-portabled'], 'ENABLE_PORTABLED'],
|
||||
['systemd-poweroff.service',
|
||||
'8',
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
||||
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||
|
||||
<refentry id="systemd-bless-boot.service" conditional='ENABLE_BOOTLOADER'
|
||||
<refentry id="systemd-bless-boot.service" conditional='ENABLE_BOOTLOADER HAVE_BLKID'
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
|
@ -3,7 +3,8 @@
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
||||
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||
|
||||
<refentry id="systemd-bsod.service" conditional='HAVE_QRENCODE' xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<refentry id="systemd-bsod.service" conditional='HAVE_QRENCODE ENABLE_INITRD'
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
<title>systemd-bsod</title>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
||||
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||
|
||||
<refentry id="systemd-journal-gatewayd.service" conditional='HAVE_MICROHTTPD'
|
||||
<refentry id="systemd-journal-gatewayd.service" conditional='ENABLE_REMOTE HAVE_MICROHTTPD'
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
|
@ -6,7 +6,7 @@
|
||||
]>
|
||||
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||
|
||||
<refentry id="systemd-journal-remote" conditional='HAVE_MICROHTTPD'
|
||||
<refentry id="systemd-journal-remote" conditional='ENABLE_REMOTE HAVE_MICROHTTPD'
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
|
@ -6,7 +6,7 @@
|
||||
]>
|
||||
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||
|
||||
<refentry id="systemd-journal-upload" conditional='HAVE_MICROHTTPD'
|
||||
<refentry id="systemd-journal-upload" conditional='ENABLE_REMOTE HAVE_LIBCURL'
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
|
@ -3,7 +3,8 @@
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
||||
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||
<refentry id="systemd-pcrlock" xmlns:xi="http://www.w3.org/2001/XInclude" conditional='HAVE_TPM2'>
|
||||
<refentry id="systemd-pcrlock" conditional='ENABLE_BOOTLOADER HAVE_OPENSSL HAVE_TPM2'
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
<title>systemd-pcrlock</title>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
||||
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||
|
||||
<refentry id="systemd-pcrphase.service" conditional='ENABLE_BOOTLOADER'
|
||||
<refentry id="systemd-pcrphase.service" conditional='ENABLE_BOOTLOADER HAVE_OPENSSL HAVE_TPM2'
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
|
Loading…
Reference in New Issue
Block a user