X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=make-directive-index.py;h=b43fea0b99e386936da6d32be21c6877504295d9;hb=f526ab7ef046d0e6d8923d4960903bcc807883fb;hp=468d14da75c53677a02588deca607c4343772217;hpb=827f70eb764428baa397e9f3e295c470a1fd43e6;p=elogind.git
diff --git a/make-directive-index.py b/make-directive-index.py
index 468d14da7..b43fea0b9 100755
--- a/make-directive-index.py
+++ b/make-directive-index.py
@@ -138,6 +138,14 @@ TEMPLATE = '''\
+
+ Constants
+
+ Various constant used and/or defined by systemd.
+
+
+
+
Miscellaneous options and directives
@@ -222,6 +230,16 @@ def _extract_directives(directive_groups, formatting, page):
storfile[text].append((pagename, section))
formatting[text] = name
+ storfile = directive_groups['constants']
+ for name in t.iterfind('.//constant'):
+ if name.attrib.get('noindex'):
+ continue
+ name.tail = ''
+ if name.text.startswith('('): # a cast, strip it
+ name.text = name.text.partition(' ')[2]
+ storfile[name.text].append((pagename, section))
+ formatting[name.text] = name
+
def _make_section(template, name, directives, formatting):
varlist = template.find(".//*[@id='{}']".format(name))
for varname, manpages in sorted(directives.items()):