-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
6 changed files
with
84 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,4 @@ cscope* | |
*.swp | ||
.theia | ||
compile_commands.json | ||
/version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
= Babeltrace's version extra information | ||
|
||
This directory contains files and a directory to add information to the | ||
version of a Babeltrace build. The CLI (`--version` option) and library | ||
can provide this information. | ||
|
||
The following directory and files are scanned at `src/common/version.i` | ||
generation time, which occurs at **every build**: | ||
|
||
`extra_version_name`:: | ||
If it exists, the first line of this file is the extra name of the | ||
custom version. | ||
|
||
`extra_version_description`:: | ||
If it exists, the file's contents is the extra description of the | ||
custom version. | ||
+ | ||
This should contain a description of local modifications applied to the | ||
source tree. A distribution packager can use this file, for example, to | ||
specify what changes were applied locally. | ||
+ | ||
All characters except alphanumeric ones, whitespaces, `.`, and `,` are | ||
replaced with `-`. | ||
|
||
`extra_patches`:: | ||
If it exists, this directory contains patch files applied to the | ||
source tree. | ||
+ | ||
Each file name is included when generating `src/common/version.i`, | ||
except `README.adoc`. | ||
+ | ||
All characters except alphanumeric ones, whitespaces, and `.` are | ||
replaced with `-`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
= Babeltrace's version extra information patches | ||
|
||
NOTE: See the parent directory's `README.adoc` file. |