From dfd3ab9b776f20b0a58e54ede3d6b3484f6ec011 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Sat, 15 Oct 2022 19:46:03 +0200 Subject: [PATCH] fixed version generation --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce4cb33..db84cb4 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ archs = android darwin freebsd linux netbsd openbsd windows PREFIX = /usr/local UID = root GID = 0 -BRANCH = $(shell git describe --all | cut -d/ -f2) +BRANCH = $(shell git branch --show-current) COMMIT = $(shell git rev-parse --short=8 HEAD) BUILD = $(shell date +%Y.%m.%d.%H%M%S) VERSION:= $(if $(filter $(BRANCH), development),$(version)-$(BRANCH)-$(COMMIT)-$(BUILD),$(version))