INNER CODE UNIT · Python

parse_configure_raw

Mormert/jle · engine/3rdparty/freetype/builds/meson/extract_libtool_version.py:36

def parse_configure_raw(header):
    major = None
    minor = None
    patch = None

    for line in header.splitlines():
        line = line.rstrip()
        m = RE_VERSION_INFO.match(line)
        if m:
            assert major == None, "version_info appears more than once!"
            major = m.group(1)
            minor = m.group(2)
            patch = m.group(3)
            continue

    assert (
        major and minor and patch
    ), "This input file is missing a version_info definition!"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…