mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-22 00:04:31 +03:00
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:
parent
7fd6c3ffe4
commit
47bb2d53ce
3
Makefile
3
Makefile
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user