Skip to content

Commit 1d844d1

Browse files
committed
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.
1 parent 518fd4a commit 1d844d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ rpmlog:
8686
echo
8787

8888
shortlog:
89-
git shortlog -r --no-merges --format="- %s" -w76,0,2 $$(git tag -l | grep '^[0-9]' | tail -n 1)..HEAD | sed 's/"):$"/"):\n"/g'
89+
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'
9090

9191
bumpver:
9292
@VERSION=`echo $(PACKAGE_VERSION)|sed -r 's/(.*)\.([0-9]+)/\1/'` ; \

0 commit comments

Comments
 (0)