From 9e92b6f11e0f59272de410f56493893334071e6e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 7 Jul 2024 16:30:23 +0900 Subject: 0.54.0 New tags will have `v` prefix. * https://github.com/junegunn/fzf/issues/2879 * https://github.com/golang/go/issues/32945 Close #2879 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f14c72c3..56bb1c1e 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,12 @@ SOURCES := $(wildcard *.go src/*.go src/*/*.go shell/*sh man/man1/*.1) $( ifdef FZF_VERSION VERSION := $(FZF_VERSION) else -VERSION := $(shell git describe --abbrev=0 2> /dev/null) +VERSION := $(shell git describe --abbrev=0 2> /dev/null | sed "s/^v//") endif ifeq ($(VERSION),) $(error Not on git repository; cannot determine $$FZF_VERSION) endif -VERSION_TRIM := $(shell sed "s/-.*//" <<< $(VERSION)) +VERSION_TRIM := $(shell sed "s/^v//; s/-.*//" <<< $(VERSION)) VERSION_REGEX := $(subst .,\.,$(VERSION_TRIM)) ifdef FZF_REVISION -- cgit v1.2.3