Sha256: 0139dbaa7c7ba9efcd4c2e6fd6a531cd7c96df4d56fc67c774ba987ad718fce0

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

#!/usr/bin/env python3
# =========================================================================
#   Unity - A Test Framework for C
#   ThrowTheSwitch.org
#   Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
#   SPDX-License-Identifier: MIT
# =========================================================================

import re
import sys

ver_re = re.compile(r"^#define\s+UNITY_VERSION_(?:MAJOR|MINOR|BUILD)\s+(\d+)$")
version = []

with open(sys.argv[1], "r") as f:
    for line in f:
        m = ver_re.match(line)
        if m:
            version.append(m.group(1))

print(".".join(version))

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
ceedling-1.0.1 vendor/cmock/vendor/unity/auto/extract_version.py
ceedling-1.0.1 vendor/unity/auto/extract_version.py
ceedling-1.0.0 vendor/cmock/vendor/unity/auto/extract_version.py
ceedling-1.0.0 vendor/unity/auto/extract_version.py