Project

General

Profile

Git-version-gen » History » Version 1

osmith, 03/05/2021 11:37 AM

1 1 osmith
h1. Git-version-gen
2
3
The Osmocom git repositories each have a copy of the @git-version-gen@ script. Its purpose is to generate a version string from a checked out git tree, or to fall back on a previously generated version string when running outside of the git tree (source tarball). In our source trees, it gets called as @./git-version-gen .tarball-version@ from @configure.ac@, and @.tarball-version@ is the fallback file.
4
5
h2. Format
6
7
When running the script, it prints a string in the following format.
8
9
<pre>
10
LAST_RELEASE_TAG "." COMMIT_COUNT_SINCE_RELEASE_TAG "-" CURRENT_GIT_COMMIT ["-dirty"]
11
</pre>
12
13
For example:
14
15
<pre>
16
0.7.0.70-657c
17
</pre>
18
19
h2. Debian source packages for OBS
20
21
The fallback file @.tarball-version@ is generated from @git-version-gen@ by @osmocom-*-packages.sh@ in osmo-ci.git, before calling @dpkg-buildpackage -S@ to generate the debian source package.
Add picture from clipboard (Maximum size: 48.8 MB)