__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 ; \
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])