From: Gary V. Vaughan Date: Wed, 29 Oct 2014 18:00:32 +0000 (+0000) Subject: maint: fix README-alpha version match. X-Git-Tag: v2.4.4~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a228b427608481768e9d5fab58751d1b4c4c2e92;p=thirdparty%2Flibtool.git maint: fix README-alpha version match. With simplified release version numbering (thank you, git!), be careful to recognize four part alpha versions, or short git revision suffixed alpha versions correctly. * Makefile.am (re_odd_version): Remove. (re_alpha_version): Recognize alpha version numbers. ($(readme)): Adjust accordingly. Signed-off-by: Gary V. Vaughan --- diff --git a/Makefile.am b/Makefile.am index 7c0c4873d..d9391de7b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -584,9 +584,9 @@ $(dotversion): ## Edit the README file for alpha releases. EXTRA_DIST += $(edit_readme_alpha) -re_odd_version = '\([0-9][0-9]*.[0-9][0-9]*.[0-9]*[13579]\)' +re_alpha_version = '\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[-\.][-\.0-9a-z]*\)' $(readme): FORCE - @if test -n `expr $(VERSION) : $(re_odd_version)`; then \ + @if test -n `expr $(VERSION) : $(re_alpha_version)`; then \ if test 0 = '$(AM_DEFAULT_VERBOSITY)' && test 1 != '$(V)'; \ then echo " GEN " $@; \ else echo "$(SHELL) $(edit_readme_alpha) $@"; fi; \