From: Han-Wen Nienhuys Date: Tue, 8 Aug 2006 21:42:26 +0000 (+0000) Subject: better version check; handle fooX.Y X-Git-Tag: cvs/HEAD~169 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=16be499f5baf84345b36440e41c41a67a14ff2ff;p=lilypond.git better version check; handle fooX.Y binaries too. --- diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4 index 73f7aa94be..96959c09f7 100644 --- a/stepmake/aclocal.m4 +++ b/stepmake/aclocal.m4 @@ -32,7 +32,7 @@ AC_DEFUN(STEPMAKE_GET_VERSION, [ ## for compatibility reasons. ## grab the first version number in --version output. - eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\.[0-9]' \ + eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep ' [0-9][0-9]*\.[0-9]' \ | head -n 1 \ | tr ' ' '\n' | grep '[0-9]\.[0-9]' | head -n 1 | sed 's/\([0-9.]*\).*/\1/g'\`\"