From 1d844d14016ebf1085e30bd4dc6cb802130aebea Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Thu, 4 Dec 2025 13:53:15 +0100 Subject: [PATCH] Makefile: Fix getting the latest tag in the shortlog target With minor relases 10 and newer, we need to sort the tags to be able to get the latest version. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a3ef578..08f6bfb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -86,7 +86,7 @@ rpmlog: echo shortlog: - git shortlog -r --no-merges --format="- %s" -w76,0,2 $$(git tag -l | grep '^[0-9]' | tail -n 1)..HEAD | sed 's/"):$"/"):\n"/g' + git shortlog -r --no-merges --format="- %s" -w76,0,2 $$(git tag -l | grep '^[0-9]' | sort -V | tail -n 1)..HEAD | sed 's/"):$"/"):\n"/g' bumpver: @VERSION=`echo $(PACKAGE_VERSION)|sed -r 's/(.*)\.([0-9]+)/\1/'` ; \