aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey-v3.3/command_id.cc
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-07-05 19:19:55 +0200
committerRobin Krahl <me@robin-krahl.de>2018-07-05 19:19:55 +0200
commitb126c5ba1e5a9f00859868d75900043d02a0031c (patch)
treed35fcce5322caf414d3cd3a04a8999ef78e32a08 /libnitrokey-v3.3/command_id.cc
parent4cf21377525af162b3117523673dafab12bc388e (diff)
downloadnitrokey-sys-rs-b126c5ba1e5a9f00859868d75900043d02a0031c.tar.gz
nitrokey-sys-rs-b126c5ba1e5a9f00859868d75900043d02a0031c.tar.bz2
Extract libnitrokey version from crate version
This patch uses the nitrokey-sys-rs crate version to extract the version of the contained libnitrokey and to deduce the name of the libnitrokey directory. The implementation uses these assumptions: 1. The crate major and minor version match the libnitrokey major and minor version. 2. If the crate has a pre-release version, it is assumed that this version has the format pre.<d>, where <d> is the output of `git describe` with all dashes replaced by dots. 3. The name of the libnitrokey directory is libnitrokey-<tag>, where <tag> is the corresponding Git version tag. 4. libnitrokey uses version tags of the format v<maj>.<min>, where <maj> the major version and <min> is the minor version.
Diffstat (limited to 'libnitrokey-v3.3/command_id.cc')
0 files changed, 0 insertions, 0 deletions