Project

General

Profile

Actions

Git-version-gen

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.

Format

When running the script, it prints a string in the following format.

LAST_RELEASE_TAG "." COMMIT_COUNT_SINCE_RELEASE_TAG "-" CURRENT_GIT_COMMIT ["-dirty"]

For example:

0.7.0.70-657c

Debian source packages for OBS

The fallback file .tarball-version is generated from git-version-gen by scripts/obs/lib/srcpkg.py in osmo-ci.git, before calling dpkg-buildpackage -S to generate the debian source package.

Files (0)

Updated by osmith over 1 year ago · 2 revisions

Add picture from clipboard (Maximum size: 48.8 MB)