Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release > by-pkgid > cfb51f0fa9d6414e1d6a89d7b1a297de > files > 27

bos-2.5-3mdv2010.1.i586.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