chiark / gitweb /
build-sys: create Makefile-man.am automatically
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 Feb 2013 03:47:47 +0000 (22:47 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Feb 2013 04:16:16 +0000 (23:16 -0500)
man rules were repeating the same information in too many places,
which was error prone. Those rules can be easily generated from .xml
files. For efficiency and because python is not a required dependency,
Makefile-man.am is only regenerated when requested with

  make update-man-list

If no metadata in man/*.xml changed, this file should not change. So
only when a new man page or a new alias is added, this file should
show up in 'git diff'. The change should then be committed.

If the support for building from git without python was dropped, we
could drop Makefile-man.am from version control. This would also
increase the partial build time (since more stuff would be rebuild
whenever sources in man/*.xml would be modified), so it would probably
wouldn't be worth it.

40 files changed:
Makefile-man.am
Makefile.am
make-directive-index.py
make-man-index.py
make-man-rules.py [new file with mode: 0644]
man/binfmt.d.xml
man/bootchart.conf.xml
man/crypttab.xml
man/hostnamectl.xml
man/localectl.xml
man/loginctl.xml
man/logind.conf.xml
man/modules-load.d.xml
man/nss-myhostname.xml
man/sd-login.xml
man/sd-readahead.xml
man/sd_get_seats.xml
man/sd_login_monitor_new.xml
man/sd_pid_get_session.xml
man/sd_readahead.xml
man/sd_seat_get_active.xml
man/sd_session_is_active.xml
man/sd_uid_get_state.xml
man/systemd-binfmt.service.xml
man/systemd-bootchart.xml
man/systemd-cryptsetup-generator.xml
man/systemd-cryptsetup@.service.xml
man/systemd-hostnamed.service.xml
man/systemd-journal-gatewayd.service.xml
man/systemd-localed.service.xml
man/systemd-logind.service.xml
man/systemd-modules-load.service.xml
man/systemd-quotacheck.service.xml
man/systemd-random-seed-load.service.xml
man/systemd-readahead-replay.service.xml
man/systemd-timedated.service.xml
man/systemd-user-sessions.service.xml
man/systemd-vconsole-setup.service.xml
man/timedatectl.xml
man/vconsole.conf.xml

index 76b794a27bd1fc600d37e15674b526fe94508679..d54d67cf119b26e427cf59083b7820aa3db0c79a 100644 (file)
@@ -1,3 +1,6 @@
+# Do not edit. Generated by make-man-rules.py.
+# Regenerate with 'make man-list-update'.
+
 MANPAGES += \
        man/bootup.7 \
        man/daemon.7 \
@@ -292,6 +295,9 @@ if ENABLE_BOOTCHART
 MANPAGES += \
        man/bootchart.conf.5 \
        man/systemd-bootchart.1
+MANPAGES_ALIAS += \
+       #
+
 endif
 
 if ENABLE_HOSTNAMED
@@ -396,6 +402,9 @@ endif
 if HAVE_MYHOSTNAME
 MANPAGES += \
        man/nss-myhostname.8
+MANPAGES_ALIAS += \
+       #
+
 endif
 
 if HAVE_PAM
@@ -464,4 +473,7 @@ if HAVE_PYTHON
 MANPAGES += \
        man/systemd.directives.7 \
        man/systemd.index.7
+MANPAGES_ALIAS += \
+       #
+
 endif
index ba55a7e1b600e0b3bd975929298f6f0fb2116d01..f73e8a6e74303459a75eb816a78d31d1f0960b28 100644 (file)
@@ -502,6 +502,13 @@ CLEANFILES += \
 
 if HAVE_PYTHON
 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
+
+XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
+update-man-list: make-man-rules.py $(XML_GLOB)
+       $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
+       $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
+       @echo "Makefile-man.am has been regenerated"
+
 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
        $(AM_V_at)$(MKDIR_P) $(dir $@)
        $(AM_V_GEN)$(PYTHON) $^ > $@
index ab40997a98bb928cfc463ac4becb893e07289b2a..b06a54c1d50a85286006e4d10c6487f4681c268f 100755 (executable)
@@ -23,7 +23,7 @@ import xml.etree.ElementTree as tree
 import re
 
 TEMPLATE = '''\
-<refentry id="systemd.directives">
+<refentry id="systemd.directives" conditional="HAVE_PYTHON">
 
         <refentryinfo>
                 <title>systemd.directives</title>
index 2dbc2da995bf9d5ece4f1ff234be5ff189dc42eb..f829d98b6a587989ac9a0589354c436bf4347793 100755 (executable)
@@ -24,7 +24,7 @@ import sys
 MDASH = ' — ' if sys.version_info.major >= 3 else ' -- '
 
 TEMPLATE = '''\
-<refentry id="systemd.index">
+<refentry id="systemd.index" conditional="HAVE_PYTHON">
 
   <refentryinfo>
     <title>systemd.index</title>
diff --git a/make-man-rules.py b/make-man-rules.py
new file mode 100644 (file)
index 0000000..b88b43a
--- /dev/null
@@ -0,0 +1,92 @@
+#  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+#
+#  This file is part of systemd.
+#
+#  Copyright 2013 Zbigniew Jędrzejewski-Szmek
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+#
+#  systemd is distributed in the hope that it will be useful, but
+#  WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+#  Lesser General Public License for more details.
+#
+#  You should have received a copy of the GNU Lesser General Public License
+#  along with systemd; If not, see <http://www.gnu.org/licenses/>.
+
+from __future__ import print_function
+import xml.etree.ElementTree as tree
+import collections
+import sys
+
+SECTION = '''\
+MANPAGES += \\
+       {manpages}
+MANPAGES_ALIAS += \\
+       {aliases}
+{rules}
+'''
+
+CONDITIONAL = '''\
+if {conditional}
+''' \
++ SECTION + \
+'''\
+endif
+'''
+
+HEADER = '''\
+# Do not edit. Generated by make-man-rules.py.
+# Regenerate with 'make update-man-list'.
+
+'''
+
+def man(page, number):
+    return 'man/{}.{}'.format(page, number)
+
+def add_rules(rules, name):
+    xml = tree.parse(name)
+    # print('parsing {}'.format(name), file=sys.stderr)
+    conditional = xml.getroot().get('conditional') or ''
+    rulegroup = rules[conditional]
+    refmeta = xml.find('./refmeta')
+    title = refmeta.find('./refentrytitle').text
+    number = refmeta.find('./manvolnum').text
+    refnames = xml.findall('./refnamediv/refname')
+    target = man(refnames[0].text, number)
+    if title != refnames[0].text:
+        raise ValueError('refmeta and refnamediv disagree: ' + name)
+    for refname in refnames:
+        assert all(refname not in group
+                   for group in rules.values()), "duplicate page name"
+        alias = man(refname.text, number)
+        rulegroup[alias] = target
+        # print('{} => {} [{}]'.format(alias, target, conditional), file=sys.stderr)
+
+def create_rules(*xml_files):
+    " {conditional => {alias-name => source-name}} "
+    rules = collections.defaultdict(dict)
+    for name in xml_files:
+        add_rules(rules, name)
+    return rules
+
+def mjoin(files):
+    return ' \\\n\t'.join(sorted(files) or '#')
+
+def make_makefile(rules):
+    return HEADER + '\n'.join(
+        (CONDITIONAL if conditional else SECTION).format(
+            manpages=mjoin(set(rulegroup.values())),
+            aliases=mjoin(k for k,v in rulegroup.items() if k != v),
+            rules='\n'.join('{}: {}'.format(k,v)
+                            for k,v in sorted(rulegroup.items())
+                            if k != v),
+            conditional=conditional)
+        for conditional,rulegroup in sorted(rules.items()))
+
+if __name__ == '__main__':
+    rules = create_rules(*sys.argv[1:])
+    print(make_makefile(rules), end='')
index 07ae0ac231b1e965737bf9030b7ec8fa19bc5fec..8c5083cafb515e2058715cd915f0e964991890e3 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="binfmt.d">
+<refentry id="binfmt.d" conditional='ENABLE_BINFMT'>
 
         <refentryinfo>
                 <title>binfmt.d</title>
index d2b09638c14c7b903ada5537d387f61fd67d299e..419554e2d1749d13017c5553b0c682abd36daf6f 100644 (file)
@@ -25,7 +25,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="bootchart.conf">
+<refentry id="bootchart.conf" conditional='ENABLE_BOOTCHART'>
         <refentryinfo>
                 <title>bootchart.conf</title>
                 <productname>systemd</productname>
index f976bdaa257db48980faf242725eef2bf2fbb617..a94163b4b2e02beb35f08373c32a02c14ad8560b 100644 (file)
@@ -25,7 +25,7 @@
   The Red Hat version has been written by Miloslav Trmac <mitr@redhat.com>.
 
 -->
-<refentry id="crypttab">
+<refentry id="crypttab" conditional='HAVE_LIBCRYPTSETUP'>
 
         <refentryinfo>
                 <title>crypttab</title>
index a29d2f5b75f444df61d78d54defca24d7cddd571..07d363420c7eda8f23a21a609414e67949463e8a 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="hostnamectl">
+<refentry id="hostnamectl" conditional='ENABLE_HOSTNAMED'>
 
         <refentryinfo>
                 <title>hostnamectl</title>
index 7563eb513c25f12be93e847e45ee94162e46073c..3e5b812dac44405da272a97b55cf380d2b9c692b 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="localectl">
+<refentry id="localectl" conditional='ENABLE_LOCALED'>
 
         <refentryinfo>
                 <title>localectl</title>
index 90b6f1e110a653ab6ac51193be946634f2ccfefd..ba0352cf6100fee0939f26738b73144e97e44125 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="loginctl">
+<refentry id="loginctl" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>loginctl</title>
index b602e2a5f5f414ecd890b909b1b03cb2f9cdfe54..d223514e0edd535009ca08beb69c6e74c86da83b 100644 (file)
@@ -22,7 +22,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="logind.conf">
+<refentry id="logind.conf" conditional='HAVE_PAM'>
         <refentryinfo>
                 <title>logind.conf</title>
                 <productname>systemd</productname>
index bcc4d12561dd5a277f8c360020406d2647d79b86..ea4f524048c79cbfa07c42c8d16c2dc408c4e29b 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="modules-load.d">
+<refentry id="modules-load.d" conditional='HAVE_KMOD'>
 
         <refentryinfo>
                 <title>modules-load.d</title>
index bd3f635692246903ed6b293dc4bf2ff47a5c550c..46b7471b0651447be58482338cd9f43dfe792ad8 100644 (file)
@@ -22,7 +22,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="nss-myhostname">
+<refentry id="nss-myhostname" conditional='HAVE_MYHOSTNAME'>
 
         <refentryinfo>
                 <title>nss-myhostname</title>
index c02ad0c1466c64e01f4b3b57a95cb9c9cdde67ba..697259564d7d8b1262d65fbdc97448ebb74460ac 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd-login">
+<refentry id="sd-login" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>sd-login</title>
index cebaa5da2b2fb442ddadfa082646c4f7f1fb0228..ee7c936813d396b916d734d1087c83bce9165a94 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd-daemon">
+<refentry id="sd-daemon" conditional='ENABLE_READAHEAD'>
 
         <refentryinfo>
                 <title>sd-readahead</title>
index 17adcef745295dbcd7f92f5382cdf465bebac0fb..a300a05751bde19fe009832991c3d806b8f38a28 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd_get_seats">
+<refentry id="sd_get_seats" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>sd_get_seats</title>
index 35cb6b368b28ab326210c9f645d37a0c1abbee55..2c4d05dcb944bf3617dd145def2fa71b9ad1d038 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd_login_monitor_new">
+<refentry id="sd_login_monitor_new" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>sd_login_monitor_new</title>
index 9517795f78eb3c11fea00aaf1b84e44b315f3566..511fcf3eded7faefb66d78936899ac58f5e9a01e 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd_pid_get_session">
+<refentry id="sd_pid_get_session" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>sd_pid_get_session</title>
index a1fc6f178f99a4826cab6f58e18ea7ce7e2db59e..39e34698d4299a38b06a3b2cb484b7c125a04e8b 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd_notify">
+<refentry id="sd_notify" conditional='ENABLE_READAHEAD'>
 
         <refentryinfo>
                 <title>sd_readahead</title>
index b1d6d20edfe04b10354832ed49be557c310f4f79..07e018de138f7457fc4424f9b2c2a3b0f77e7270 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd_seat_get_active">
+<refentry id="sd_seat_get_active" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>sd_seat_get_active</title>
index 1fa7457f7873b00a530657e6f5e7938e86be1902..76f6f9544ce3c8daa9f232f4739ec28986daae53 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd_session_is_active">
+<refentry id="sd_session_is_active" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>sd_session_is_active</title>
index b7bc944b1489788a99acada8edbb8abff7519439..cc8fc0f5b6046462a6bad549843fa4b0a8cc4b2e 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd_uid_get_state">
+<refentry id="sd_uid_get_state" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>sd_uid_get_state</title>
index 1db735a826b04cd318902f2a04eb35483dc08555..748e41780a51d7ff656e6719b1cabebb3fea63c9 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-binfmt.service">
+<refentry id="systemd-binfmt.service" conditional='ENABLE_BINFMT'>
 
         <refentryinfo>
                 <title>systemd-binfmt.service</title>
index 0df7c4bcf405cd0d37f2e7963ec562fcc47bc843..f31d4a0a6c5faa917ce8ba749456cd8f5caef3bb 100644 (file)
@@ -25,7 +25,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="systemd-bootchart">
+<refentry id="systemd-bootchart" conditional='ENABLE_BOOTCHART'>
         <refentryinfo>
                 <title>systemd-bootchart</title>
                 <productname>systemd</productname>
index c5f8d2a9d8ea0dec8909f8469dd383e575269fef..292e967bea2ce02fe05cceaf25b196b1de7bd1bc 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-cryptsetup-generator">
+<refentry id="systemd-cryptsetup-generator" conditional='HAVE_LIBCRYPTSETUP'>
 
         <refentryinfo>
                 <title>systemd-cryptsetup-generator</title>
index abbb9d78f20f3ddf25abfd7a971785b83f914b09..6fa2e0cdd031b610b7df13d008b74f5c171bdb65 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-cryptsetup@.service">
+<refentry id="systemd-cryptsetup@.service" conditional='HAVE_LIBCRYPTSETUP'>
 
         <refentryinfo>
                 <title>systemd-cryptsetup@.service</title>
index d9c1911018d7fb6d66aa665fdf50d1823d7e9ec2..fe64a62fbee34e441a1643abb671a8e46c97199a 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="systemd-hostnamed.service">
+<refentry id="systemd-hostnamed.service" conditional='ENABLE_HOSTNAMED'>
 
         <refentryinfo>
                 <title>systemd-hostnamed.service</title>
index 44cd6167f59ed1dad2a857e47dd45a002e5a7fb6..0b6fd706a68de693caf4614a2037dfb33a6f38ac 100644 (file)
@@ -21,7 +21,7 @@ You should have received a copy of the GNU Lesser General Public License
 along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="systemd-journal-gatewayd.service">
+<refentry id="systemd-journal-gatewayd.service" conditional='HAVE_MICROHTTPD'>
 
   <refentryinfo>
     <title>systemd-journal-gatewayd.service</title>
index 6cefc4265fae4ba0724c9a76eca04b10646b85be..1551e6a2ba22c1d57e7852f9973fb3afc00a744e 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="systemd-localed.service">
+<refentry id="systemd-localed.service" conditional='ENABLE_LOCALED'>
 
         <refentryinfo>
                 <title>systemd-localed.service</title>
index 00f34051a393180e06c9097f179ae80cc228c55f..523a63b4f35ec5da97de8ba778e2f0c4aee79c4c 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="systemd-logind.service">
+<refentry id="systemd-logind.service" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>systemd-logind.service</title>
index ea10be2234841dbd8a16b2be7329465193b61d01..1d33b8eec6744280f27045e7abb9545920fdc0d9 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-modules-load.service">
+<refentry id="systemd-modules-load.service" conditional='HAVE_KMOD'>
 
         <refentryinfo>
                 <title>systemd-modules-load.service</title>
index 2ffee9158e8e70db92181bdb76bbe3335ae70276..ff04e582de56e6787f487afc60baed1f52134666 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-quotacheck.service">
+<refentry id="systemd-quotacheck.service" conditional='ENABLE_QUOTACHECK'>
 
         <refentryinfo>
                 <title>systemd-quotacheck.service</title>
index 87f563e29365044106cecf77eb09f932b4e39a17..693c008a2d3c668ec82378c74c544f4fde489111 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-random-seed-load.service">
+<refentry id="systemd-random-seed-load.service" conditional='ENABLE_RANDOMSEED'>
 
         <refentryinfo>
                 <title>systemd-random-seed-load.service</title>
index 66d253454b78153e8965a7e7a5deff98d4a9f88b..3d7d9f542492564dd1185f64a5c014f4135c7b11 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="systemd-readahead-replay.service">
+<refentry id="systemd-readahead-replay.service" conditional='ENABLE_READAHEAD'>
 
         <refentryinfo>
                 <title>systemd-readahead-replay.service</title>
index ea2abc57657b96eea7ef9509b4d1e8882271d503..c82c0ff439642a91ee49d2da306308083745968d 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="systemd-timedated.service">
+<refentry id="systemd-timedated.service" conditional='ENABLE_TIMEDATED'>
 
         <refentryinfo>
                 <title>systemd-timedated.service</title>
index 9214ec9c35baedaeb101da6cf3ada1425185d708..fc93e2dc2f1167eb20c0215ee2755162337ec355 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-user-sessions.service">
+<refentry id="systemd-user-sessions.service" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>systemd-user-sessions.service</title>
index df1b1a16b68a9bafda8ee4853492de54ab88ab39..3c50799cbd2ca81270ff2fcadbeead89d2849a92 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-vconsole-setup.service">
+<refentry id="systemd-vconsole-setup.service" conditional='ENABLE_VCONSOLE'>
 
         <refentryinfo>
                 <title>systemd-vconsole-setup.service</title>
index 4f34bb7b7334304727bf85819b404fae8bf6a9c4..a8e78ae8d3990fc815f803e7ed748d62dc268d04 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="timedatectl">
+<refentry id="timedatectl" conditional='ENABLE_TIMEDATED'>
 
         <refentryinfo>
                 <title>timedatectl</title>
index 45156b7447d54a077d932c15d7977444034c2563..f60b571b72158d15ba38f391258c5b9b7dd68b8c 100644 (file)
@@ -22,7 +22,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="vconsole.conf">
+<refentry id="vconsole.conf" conditional='ENABLE_VCONSOLE'>
         <refentryinfo>
                 <title>vconsole.conf</title>
                 <productname>systemd</productname>