'Process docutils-generated dependency info.'

def process_dependencies(self, docname, doctree):

    cwd = os.getcwd()
    frompath = path.join(path.normpath(self.srcdir), 'dummy')
    deps = doctree.settings.record_dependencies
    if (not deps):
        return
    for dep in deps.list:
        relpath = relative_path(frompath, path.normpath(path.join(cwd, dep)))
        self.dependencies.setdefault(docname, set()).add(relpath)
