Beispiel #1
0
            "Usage: %s <source_root> <docs_folder> <revision> [check_coverage]"
            % sys.argv[0],
            file=sys.stderr)
        sys.exit(1)
    SOURCE_DIR = sys.argv[1]
    DOCS_DIR = sys.argv[2]
    build_version = sys.argv[3]
    if len(sys.argv) == 5:
        check_coverage = bool(sys.argv[4])
    else:
        check_coverage = False

    CWD = os.getcwd()
    os.chdir(SOURCE_DIR)

    # Run Doxygen
    run_doxygen(build_version, hide_undoc_classes=check_coverage)

    # Copy the files to DOCS_DIR
    if os.path.exists(DOCS_DIR):
        shutil.rmtree(DOCS_DIR)
    shutil.copytree('doxygen/html', DOCS_DIR)

    if check_coverage:
        sys.path.insert(0, os.path.join(SOURCE_DIR, 'python', 'infra'))
        from ParseDoxygen import parse_doxygen
        parse_doxygen(os.path.join(SOURCE_DIR, output_log),
                      os.path.join(SOURCE_DIR, error_log), DOCS_DIR)

    os.chdir(CWD)
Beispiel #2
0
    if len(sys.argv) < 4 or len(sys.argv) > 5:
        print >> sys.stderr, "Usage:", sys.argv[
            0], "<source_root>", "<docs_folder>", "<revision>", "[check_coverage]"
        sys.exit(1)
    SOURCE_DIR = sys.argv[1]
    DOCS_DIR = sys.argv[2]
    build_version = sys.argv[3]
    if (len(sys.argv) == 5):
        check_coverage = bool(sys.argv[4])
    else:
        check_coverage = False

    CWD = os.getcwd()
    os.chdir(SOURCE_DIR)

    # Run Doxygen
    RunDoxygen(build_version, hide_undoc_classes=check_coverage)

    # Copy the files to DOCS_DIR
    if os.path.exists(DOCS_DIR):
        shutil.rmtree(DOCS_DIR)
    shutil.copytree('doxygen/html', DOCS_DIR)

    if check_coverage:
        sys.path.insert(0, SOURCE_DIR + '/python/infra')
        from ParseDoxygen import parse_doxygen
        parse_doxygen(SOURCE_DIR + '/' + output_log,
                      SOURCE_DIR + '/' + error_log, DOCS_DIR)

    os.chdir(CWD)
Beispiel #3
0
if __name__ == "__main__":
    if len(sys.argv) < 4 or len(sys.argv) > 5:
        print >>sys.stderr, "Usage:", sys.argv[0], "<source_root>", "<docs_folder>", "<revision>", "[check_coverage]"
        sys.exit(1)
    SOURCE_DIR = sys.argv[1]
    DOCS_DIR = sys.argv[2]
    build_version = sys.argv[3]
    if (len(sys.argv)==5):
        check_coverage = bool(sys.argv[4])
    else:
        check_coverage = False

    CWD = os.getcwd()
    os.chdir(SOURCE_DIR)


    # Run Doxygen
    RunDoxygen(build_version, hide_undoc_classes=check_coverage)

    # Copy the files to DOCS_DIR
    os.system('rm -rf ' + DOCS_DIR)
    os.system('cp -r doxygen/html ' + DOCS_DIR)

    if check_coverage:
        sys.path.insert(0,SOURCE_DIR+'/python/infra')
        from ParseDoxygen import parse_doxygen
        parse_doxygen(SOURCE_DIR+'/'+output_log,SOURCE_DIR+'/'+error_log,DOCS_DIR)

    os.chdir(CWD)
Beispiel #4
0
if __name__ == "__main__":
    if len(sys.argv) < 4 or len(sys.argv) > 5:
        print >>sys.stderr, "Usage:", sys.argv[0], "<source_root>", "<docs_folder>", "<revision>", "[check_coverage]"
        sys.exit(1)
    SOURCE_DIR = sys.argv[1]
    DOCS_DIR = sys.argv[2]
    build_version = sys.argv[3]
    if len(sys.argv) == 5:
        check_coverage = bool(sys.argv[4])
    else:
        check_coverage = False

    CWD = os.getcwd()
    os.chdir(SOURCE_DIR)

    # Run Doxygen
    run_doxygen(build_version, hide_undoc_classes=check_coverage)

    # Copy the files to DOCS_DIR
    if os.path.exists(DOCS_DIR):
        shutil.rmtree(DOCS_DIR)
    shutil.copytree('doxygen/html', DOCS_DIR)

    if check_coverage:
        sys.path.insert(0, os.path.join(SOURCE_DIR, 'python', 'infra'))
        from ParseDoxygen import parse_doxygen
        parse_doxygen(os.path.join(SOURCE_DIR, output_log), os.path.join(SOURCE_DIR, error_log), DOCS_DIR)

    os.chdir(CWD)