summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-07-07 16:30:23 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-07-08 22:51:48 +0900
commit9e92b6f11e0f59272de410f56493893334071e6e (patch)
treeb217b147ffe2a6e9ee963736d5c793c5f9904fd5 /Makefile
parent6cbde812f6dc81c35f61fc1f6b88f6a1a6ff1e68 (diff)
downloadfzf-9e92b6f11e0f59272de410f56493893334071e6e.tar.gz
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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