From: Vincent Bernat Date: Sun, 25 Jan 2015 21:19:07 +0000 (+0100) Subject: build: use version sort for changelog X-Git-Tag: 0.7.14~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d162d78546598bad04b297ffd66b73890c9a21e8;p=thirdparty%2Flldpd.git build: use version sort for changelog --- 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')]:" ; \