fetch_inner_version – print inner version of a package.
Description
The method prints resulting inner version of the current package.
If INNER_VERSION
is set, it is printed and function returns.
Otherwise files MINTNEUTRALDIR/inner_version,
DISTDIR/inner_version
and T/inner_version
are checked in order. First found file is read and its content is summarised with
the value of base_INNER_VERSION,
which can be given by
any_base_inner_version
option.
Option is provided for ability to rise the inner version explicitly.
In case of absent or incorrect version nothing is printed to stdout and diagnostic message is printed to stderr.
Writing
The method does not write to any directories.
Variables
The method uses any-api(7)
variables:
- INNER_VERSION
- MINTNEUTRALDIR
- DISTDIR
- T
- P
The method uses engine variables:
- base_INNER_VERSION
Options
The following options affect the method:
- any_base_inner_version