]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: use version sort for changelog
authorVincent Bernat <vincent@bernat.im>
Sun, 25 Jan 2015 21:19:07 +0000 (22:19 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 25 Jan 2015 21:19:07 +0000 (22:19 +0100)
Makefile.am

index f60caf956102c0f417e962e7f66956f7ef66bcde..6279fc63c97ec7f38cd5ce5d4aac266c28c61b73 100644 (file)
@@ -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')]:" ; \