Debian Codegraph @

doc/scripts/showindex.py

raw
1 #!/usr/bin/env python
2 """ Print a line for each function in index.html.
3 Usefull to check if all functions are documented.
4 """
5
6 import os
7
8 commands = []
9 reffiles = {}
10
11 for infile in os.listdir('.'):
12 if not infile.endswith('.html'): continue
13 for part in open(infile).read().split('<a name="')[1:]:
14 command = part.split('"')[0]
15 commands.append(command)
16 reffiles[command] = infile
17
18 commands.sort()
19
20 for command in commands:
21 print command