X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=tools%2Fmake-directive-index.py;h=b04281490d6089ee4726ca6af5397f21659ffd4c;hb=9c70fc2164f5852913536fc7af14a93e9c783a8d;hp=464de31223b010c5ee4543017a143f4697e53c5a;hpb=11a15892230011c331d4e31cdbbd58e8b3dfe4af;p=thirdparty%2Fsystemd.git
diff --git a/tools/make-directive-index.py b/tools/make-directive-index.py
index 464de31223b..b04281490d6 100755
--- a/tools/make-directive-index.py
+++ b/tools/make-directive-index.py
@@ -1,10 +1,5 @@
#!/usr/bin/env python3
-# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
# SPDX-License-Identifier: LGPL-2.1+
-#
-# This file is part of systemd.
-#
-# Copyright 2012-2013 Zbigniew JÄdrzejewski-Szmek
import sys
import collections
@@ -12,156 +7,6 @@ import re
from xml_helper import xml_parse, xml_print, tree
from copy import deepcopy
-TEMPLATE = '''\
-
-
-
- systemd.directives
- systemd
-
-
-
- Developer
- Zbigniew
- JÄdrzejewski-Szmek
- zbyszek@in.waw.pl
-
-
-
-
-
- systemd.directives
- 7
-
-
-
- systemd.directives
- Index of configuration directives
-
-
-
- Unit directives
-
- Directives for configuring units, used in unit
- files.
-
-
-
-
-
- Options on the kernel command line
-
- Kernel boot options for configuring the behaviour of the
- systemd process.
-
-
-
-
-
- Environment variables
-
- Environment variables understood by the systemd
- manager and other programs.
-
-
-
-
-
- UDEV directives
-
- Directives for configuring systemd units through the
- udev database.
-
-
-
-
-
- Network directives
-
- Directives for configuring network links through the
- net-setup-link udev builtin and networks through
- systemd-networkd.
-
-
-
-
-
- Journal fields
-
- Fields in the journal events with a well known meaning.
-
-
-
-
-
- PAM configuration directives
-
- Directives for configuring PAM behaviour.
-
-
-
-
-
- /etc/crypttab and
- /etc/fstab options
-
- Options which influence mounted filesystems and
- encrypted volumes.
-
-
-
-
-
- System manager directives
-
- Directives for configuring the behaviour of the
- systemd process.
-
-
-
-
-
- command line options
-
- Command-line options accepted by programs in the
- systemd suite.
-
-
-
-
-
- Constants
-
- Various constant used and/or defined by systemd.
-
-
-
-
-
- Miscellaneous options and directives
-
- Other configuration elements which don't fit in
- any of the above groups.
-
-
-
-
-
- Files and directories
-
- Paths and file names referred to in the
- documentation.
-
-
-
-
-
- Colophon
-
-
-
-'''
-
COLOPHON = '''\
This index contains {count} entries in {sections} sections,
referring to {pages} individual manual pages.
@@ -175,22 +20,33 @@ def _extract_directives(directive_groups, formatting, page):
storopt = directive_groups['options']
for variablelist in t.iterfind('.//variablelist'):
klass = variablelist.attrib.get('class')
+ searchpath = variablelist.attrib.get('xpath','./varlistentry/term/varname')
storvar = directive_groups[klass or 'miscellaneous']
#