From 54b0144ecbf9caacac73b4b009cc72d2554e09cd Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2023 01:55:27 +0200 Subject: Makefile: Remove snapshot for tag editing in `release` target Need to remove the "-SNAPSHOT" string from the tagged version. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7256fba..4b37f5c 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,9 @@ pdf-form-replace-font2: pdf-form-replace-font2.in .PHONY: release release: mvn release:prepare $(MVNFLAGS) - git tag --annotate v$(VERSION) --force "$$(git rev-parse v$(VERSION)^{})" + git tag --annotate v$(VERSION:-SNAPSHOT=) \ + --force \ + "$$(git rev-parse v$(VERSION:-SNAPSHOT=)^{})" .PHONY: install -- cgit v1.2.3