ecbuild_parse_version¶
Parse version string of the form “<major>[.<minor>[.<patch>[.<tweak>]]][<suffix>]”
ecbuild_parse_version( <version_str> [ PREFIX <prefix> ] )
Options¶
- PREFIXoptional
string to be prefixed to all defined variables. If not given, the value “_” will be used.
Notes¶
Following variables if possible:
<prefix>_VERSION_STR = <major>[.<minor>[.<patch>[.<tweak>]]][<suffix>] <prefix>_VERSION = <major>[.<minor>[.<patch>[.<tweak>]]] <prefix>_VERSION_MAJOR = <major> <prefix>_VERSION_MINOR = <minor> <prefix>_VERSION_PATCH = <patch> <prefix>_VERSION_TWEAK = <tweak> <prefix>_VERSION_SUFFIX = <suffix>
ecbuild_parse_version_file¶
Parse version string of the form “<major>[.<minor>[.<patch>[.<tweak>]]][<suffix>]” contained in a file
ecbuild_parse_version_file( <file> [ PREFIX <prefix> ] )
Options¶
- PREFIXoptional
string to be prefixed to all defined variables. If not given, the value “_” will be used.
Notes¶
Following variables if possible:
<prefix>_VERSION_STR = <major>[.<minor>[.<patch>[.<tweak>]]][<suffix>] <prefix>_VERSION = <major>[.<minor>[.<patch>[.<tweak>]]] <prefix>_VERSION_MAJOR = <major> <prefix>_VERSION_MINOR = <minor> <prefix>_VERSION_PATCH = <patch> <prefix>_VERSION_TWEAK = <tweak> <prefix>_VERSION_SUFFIX = <suffix>