X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=make-directive-index.py;h=eaf7019a2b343efdcbb1d86ebc61300a604ac3fd;hb=80343dc19a9bcd703275ad2ad88f43e5310559d6;hp=0c3b67a9d9ab1318f02693eeaef448d88963bf11;hpb=d9cfd69403d18438d7bafd172d6a0686940c2e30;p=elogind.git
diff --git a/make-directive-index.py b/make-directive-index.py
old mode 100644
new mode 100755
index 0c3b67a9d..eaf7019a2
--- a/make-directive-index.py
+++ b/make-directive-index.py
@@ -1,4 +1,22 @@
-# -*- coding: utf-8 -*-
+# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+#
+# This file is part of systemd.
+#
+# Copyright 2012 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 .
+
import sys
import collections
import xml.etree.ElementTree as tree
@@ -38,6 +56,33 @@ TEMPLATE = '''\
+
+
+ System manager directives
+
+ Directives for configuring the behaviour of the
+ systemd process.
+
+
+
+
+
+ UDEV directives
+
+ Directives for configuring systemd units through the
+ udev database.
+
+
+
+
+
+ Journal directives
+
+ Directives for configuring the behaviour of the
+ journald process.
+
+
+
'''
@@ -91,6 +136,9 @@ def make_page(xml_files):
"Extract directives from xml_files and return XML index tree."
directive_groups = {name:collections.defaultdict(list)
for name in ['unit-directives',
+ 'udev-directives',
+ 'systemd-directives',
+ 'journal-directives',
]}
for page in xml_files:
_extract_directives(directive_groups, page)