common: support custom, extra information for build's version
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 21 Jan 2020 14:55:43 +0000 (09:55 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 21 Jan 2020 20:14:32 +0000 (15:14 -0500)
commit1f316595674936318a79ceb02911d0a5713fcde3
tree32e3699bdf1df2933c7405116a916d3f4eb08a88
parent19e20ba95029abaae4f155eef2cbbdcf6f59959e
common: support custom, extra information for build's version

This patch adds a system of extra version information also found in
LTTng-tools.

`src/common/Makefile` generates `src/common/version.i` at every build.
This file contains:

* The current Git revision description.

* Extra name of the version (found in `version/extra_version_name`).

* Extra description of the version (found in
  `version/extra_version_description`).

* A list of patch file names found in `version/extra_patches`.

All definitions can be empty strings.

See `version/README.adoc` to learn more.

As of this patch, libbabeltrace2 does not offer getters for this data
and the CLI does not print it with the `--version` option. This is
reserved for subsequent patches.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ife50e5bcaa6b3bdeda6ee4e7c1fdeb2fb1f63887
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2836
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
.gitignore
Makefile.am
src/cli/babeltrace2-cfg-cli-args.c
src/common/Makefile.am
version/README.adoc [new file with mode: 0644]
version/extra_patches/README.adoc [new file with mode: 0644]
This page took 0.024558 seconds and 4 git commands to generate.