Version is now specified in the makefile

git describe doesn't work for tarball releases

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2023-11-16 15:24:22 -05:00
parent 7fd6c3ffe4
commit 47bb2d53ce
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,5 @@
VERSION=1.3.3
PREFIX?=/usr/local
PKG_CONFIG?=pkg-config
INSTALL=install
@ -46,7 +48,6 @@ CARGO_PROFILE=release
CARGO_BUILD_ARGS=--$(CARGO_PROFILE)
CARGO_BUILD=$(CARGO) build $(CARGO_BUILD_ARGS)
VERSION?=$(shell git describe --dirty=+ 2>/dev/null || echo v0.1-nogit)
include Makefile.compiler

View File

@ -4,6 +4,6 @@
int cmd_version(int argc, char *argv[])
{
printf("bcachefs tool version %s\n", VERSION_STRING);
printf("%s\n", VERSION_STRING);
return 0;
}