X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=make-directive-index.py;h=eaf7019a2b343efdcbb1d86ebc61300a604ac3fd;hp=49d1028edb8778b8187a1451c6611b1815788361;hb=94f5bbc626f2a4102debd9b17c964170a887cb49;hpb=e1abd3efabb95a30d0702ed1c7c33c57bf898297
diff --git a/make-directive-index.py b/make-directive-index.py
old mode 100644
new mode 100755
index 49d1028ed..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
@@ -39,6 +57,15 @@ TEMPLATE = '''\
+
+ System manager directives
+
+ Directives for configuring the behaviour of the
+ systemd process.
+
+
+
+
UDEV directives
@@ -47,6 +74,15 @@ TEMPLATE = '''\
+
+
+ Journal directives
+
+ Directives for configuring the behaviour of the
+ journald process.
+
+
+
'''
@@ -101,6 +137,8 @@ def make_page(xml_files):
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)