Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > 6ef0fdc2c18d666ec7b59c27c05c5d78 > files > 29

boswars-2.7-10.20170903.1.mga6.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