aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-16 15:24:22 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-16 15:24:22 -0500
commit47bb2d53ce76b3a338d7f9c7315a42fbb2e2fdc4 (patch)
treee0f95b67afeb81bd6cfb5fe9b3e434731bb3f58e
parent7fd6c3ffe45b3b42c0bc8a8c5d1387a5e3316a54 (diff)
downloadbcachefs-tools-47bb2d53ce76b3a338d7f9c7315a42fbb2e2fdc4.tar.gz
Version is now specified in the makefile
git describe doesn't work for tarball releases Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--Makefile3
-rw-r--r--cmd_version.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 73621e0b..61a62455 100644
--- a/Makefile
+++ b/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
diff --git a/cmd_version.c b/cmd_version.c
index 3fb4b6e2..5fe30e5e 100644
--- a/cmd_version.c
+++ b/cmd_version.c
@@ -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;
}