git describe doesn't work for tarball releases
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
PREFIX?=/usr/local
PKG_CONFIG?=pkg-config
INSTALL=install
PREFIX?=/usr/local
PKG_CONFIG?=pkg-config
INSTALL=install
CARGO_BUILD_ARGS=--$(CARGO_PROFILE)
CARGO_BUILD=$(CARGO) build $(CARGO_BUILD_ARGS)
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
include Makefile.compiler
int cmd_version(int argc, char *argv[])
{
int cmd_version(int argc, char *argv[])
{
- printf("bcachefs tool version %s\n", VERSION_STRING);
+ printf("%s\n", VERSION_STRING);