Next: , Previous: , Up: Top   [Contents][Index]


2 Version functions

MMCK Infix’s version number follows the specification of Semantic Versioning version 2.0 as outlined at:

https://semver.org/

the following functions are available to inspect the version specification at runtime.

Function: mmck-infix-package-major-version

Return a fixnum representing the package’s major version number. As example, if the full semantic version is ‘1.2.3-devel.0+x86-64’: the major version number is the fixnum ‘1’.

Function: mmck-infix-package-minor-version

Return a fixnum representing the package’s minor version number. As example, if the full semantic version is ‘1.2.3-devel.0+x86-64’: the minor version number is the fixnum ‘2’.

Function: mmck-infix-package-patch-level

Return a fixnum representing the package’s patch level number. As example, if the full semantic version is ‘1.2.3-devel.0+x86-64’: the patch level number is the fixnum ‘3’.

Function: mmck-infix-package-prerelease-tag

Return a string representing the package’s prerelease tag. As example, if the full semantic version is ‘1.2.3-devel.0+x86-64’: the prerelease tag is the string ‘"devel.0"’. This string may be empty.

Function: mmck-infix-package-build-metadata

Return a string representing the package’s build metadata. As example, if the full semantic version is ‘1.2.3-devel.0+x86-64’: the build metadata is the string ‘"x86-64"’. This string may be empty. We need to remember that this specification segment must contain only ASCII alphanumerics and hyphen ‘[0-9A-Za-z-]’; underscores are not allowed.

Function: mmck-infix-package-version

Return a string representing the package’s version. As example, if the full semantic version is ‘1.2.3-devel.0+x86-64’: the package version is the string ‘"1.2.3-devel.0"’, without the build metadata.

Function: mmck-infix-package-semantic-version

Return a string representing the package’s semantic version. As example, if the full semantic version is ‘1.2.3-devel.0+x86-64’: the package version is the string ‘"v1.2.3-devel.0+x86-64"’, notice the leading character ‘v’.


Next: , Previous: , Up: Top   [Contents][Index]

This document describes version 0.1.0-devel.0 of MMCK Infix.