Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 05965ea51ba88df53613c82df06af8e0 > files > 27

bos-2.5-3mdv2010.1.x86_64.rpm

#!/usr/bin/env python
""" Print a line for each function in index.html.
  Usefull to check if all functions are documented.
"""

import os

commands = []
reffiles = {}

for infile in os.listdir('.'):
    if not infile.endswith('.html'): continue
    for part in open(infile).read().split('<a name="')[1:]:
        command = part.split('"')[0]
        commands.append(command)
        reffiles[command] = infile

commands.sort()

for command in commands:
     print command