diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-07-07 16:30:23 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-07-08 22:51:48 +0900 |
| commit | 9e92b6f11e0f59272de410f56493893334071e6e (patch) | |
| tree | b217b147ffe2a6e9ee963736d5c793c5f9904fd5 /Makefile | |
| parent | 6cbde812f6dc81c35f61fc1f6b88f6a1a6ff1e68 (diff) | |
| download | fzf-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
