]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
configure: only match tags starting with a digit for version number
authorVincent Bernat <bernat@luffy.cx>
Tue, 12 Feb 2013 19:53:36 +0000 (20:53 +0100)
committerVincent Bernat <bernat@luffy.cx>
Tue, 12 Feb 2013 20:00:02 +0000 (21:00 +0100)
Makefile.am
configure.ac

index 11a68e5e2a335eec273b3ac7442e766116f941b8..16870f81de9e592365e9e5bce87b2a6e70b2138c 100644 (file)
@@ -13,7 +13,7 @@ dist-hook: $(distdir)/ChangeLog
 __force-changelog-generation:
 $(distdir)/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) ; \
+               prev=$$(git describe --tags --always --match '[0-9]*' 2> /dev/null) ; \
                for tag in $$(git tag | grep -E '^[0-9]+(\.[0-9]+){1,}$$' | sort -rn); do \
                        if [ x"$$prev" = x ]; then prev=$$tag ; fi ; \
                        if [ x"$$prev" = x"$$tag" ]; then continue; fi ; \
index 96e856f8090f54cd7b79d257c91064772d03f8c3..319afaa685e4a421353d30e1d2647fcb6f8f1713 100644 (file)
@@ -11,7 +11,7 @@ dnl Use something like this if you need to patch autoconf files and
 dnl regenerate configure outside upstream git tree:
 dnl AC_INIT([lldpd], [0.5.7], [bernat@luffy.cx])
 AC_INIT([lldpd],
-        [m4_esyscmd_s([git describe --tags --always 2> /dev/null || date +%F])],
+        [m4_esyscmd_s([git describe --tags --always --match [0-9]* 2> /dev/null || date +%F])],
         [bernat@luffy.cx])
 
 AC_CONFIG_SRCDIR([src/log.c])