ExtractVersionΒΆ

Extracts version numbers from a version string:

extract_version (<name> [REVERSE_NAME])

Tries to extract the following variables (the second version is used if REVERSE_NAME is set as argument):

<name>_MAJOR_VERSION or <name>_VERSION_MAJOR - <name> major version
<name>_MINOR_VERSION or <name>_VERSION_MINOR - <name> minor version
<name>_PATCH_VERSION or <name>_VERSION_PATCH - <name> patch version
<name>_TWEAK_VERSION or <name>_VERSION_TWEAK - <name> tweak version
<name>_VERSION_COUNT - number of version components, 0 to 4