]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: don't use `sort -V`
authorVincent Bernat <vincent@bernat.im>
Thu, 19 Feb 2015 21:52:13 +0000 (22:52 +0100)
committerVincent Bernat <vincent@bernat.im>
Thu, 19 Feb 2015 21:52:13 +0000 (22:52 +0100)
Not portable enough. Use `sort -k ... -k ...` instead.

Makefile.am

index 6279fc63c97ec7f38cd5ce5d4aac266c28c61b73..b1727dc46e30be1a3882f59e157f69ee038f4e6f 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 -rV); do \
+               for tag in $$(git tag | $(EGREP) '^[0-9]+(\.[0-9]+){1,}$$' | sort -t. -k 1,1nr -k 2,2nr -k 3,3nr); 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')]:" ; \