From d162d78546598bad04b297ffd66b73890c9a21e8 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 25 Jan 2015 22:19:07 +0100 Subject: [PATCH] build: use version sort for changelog --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f60caf95..6279fc63 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,7 +14,7 @@ __force-changelog-generation: ChangeLog: __force-changelog-generation $(AM_V_GEN)if test -d $(top_srcdir)/.git; then \ prev=$$(git describe --tags --always --match '[0-9]*' 2> /dev/null) ; \ - for tag in $$(git tag | $(EGREP) '^[0-9]+(\.[0-9]+){1,}$$' | sort -rn); do \ + for tag in $$(git tag | $(EGREP) '^[0-9]+(\.[0-9]+){1,}$$' | sort -rV); do \ if [ x"$$prev" = x ]; then prev=$$tag ; fi ; \ if [ x"$$prev" = x"$$tag" ]; then continue; fi ; \ echo "$$prev [$$(git log $$prev -1 --pretty=format:'%ai')]:" ; \ -- 2.39.5