cloudbase / wnbd

Windows Ceph RBD NBD driver
GNU Lesser General Public License v2.1
58 stars 26 forks source link

Add versioning #20

Closed petrutlucian94 closed 3 years ago

petrutlucian94 commented 4 years ago

We'll use semantic versioning, which will be set through git tags.

For now, a script will be run as a pre-build event, parsing the git tag and generating version.h.

wnbd-client -v will return the wnbd-client, the libwnbd as well as the driver version.

We're using the "git describe" short version, which includes the commit id and offset for untagged commits. If needed, we can easily add other version info (e.g. build type, architecture, etc).

Signed-off-by: Lucian Petrut lpetrut@cloudbasesolutions.com