Draft: [VERSIONING] add class for version
The class allows to read important variable such as: CLEA_OS_IMAGE_ID, CLEA_OS_IMAGE_VERSION, CLEA_OS_MANIFEST_DATE and CLEA_OS_BUILD_DATE.
- CLEA_OS_IMAGE_ID: show the tag, if not assigned it show the branch name; if the current commit is not tagged the id contains the SHA; if there are changes in local the flag DIRTY is added to the id.
- CLEA_OS_IMAGE_VERSION: if the version is in the tag, it is extracted and rewritten following a specified syntax(e.g. kirkstone_1-06-00 -> 1.6.0). If the version is not provided the value is set initially to "0.0.1".
- CLEA_OS_MANIFEST_DATE: show the date of the most recent commit.
- CLEA_OS_BUILD_DATE: show the present date of the build.
Signed-off-by: carlo carlo.ferriolo@seco.com
Edited by Carlo Ferriolo