chiark / gitweb /
man: include number of man pages in index page
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Jul 2012 17:11:10 +0000 (19:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Jul 2012 17:11:10 +0000 (19:11 +0200)
make-man-index.py

index 3644090..44d15f8 100755 (executable)
@@ -52,4 +52,9 @@ for n in sorted(index.keys(), key = str.lower):
         i = SubElement(li, 'i')
         i.text = purpose
 
+hr = SubElement(body, 'hr')
+
+p = SubElement(body, 'p')
+p.text = "This index contains %s entries, referring to %i individual manual pages." % (len(index), len(argv)-1)
+
 stdout.write(tostring(html))