]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Add git ref to the binary
authorDaniel Wagner <dwagner@suse.de>
Tue, 12 Apr 2022 11:52:59 +0000 (13:52 +0200)
committerDaniel Wagner <dwagner@suse.de>
Wed, 13 Apr 2022 19:50:12 +0000 (21:50 +0200)
commit1f54f1536bbd1c21c74c826cea66f48287cb75db
treebf3685be70bfa3ac066f86661aebda8c717c0fff
parent3034c347b14cdebd992461cdc0a1b1bfad53fd22
nvme: Add git ref to the binary

In order to be able to figure out which binary is in use (for example
in debugging situation) it's really helpful to have the 'git describe'
ref added to the binary.

  $ .build/nvme --version
  nvme version 2.0 (git 2.0-2-gcbd3f8d+)

  $ .build/nvme wdc --version
  nvme wdc version 1.16.4 (git 2.0-2-gcbd3f8d+)

Signed-off-by: Daniel Wagner <dwagner@suse.de>
meson-vcs-tag.sh [new file with mode: 0755]
meson.build
meson_options.txt
plugin.c