From: Matthias Kilian Date: Tue, 15 Dec 2009 20:33:04 +0000 (-0800) Subject: Fix STEPMAKE_GET_VERSION for OpenBSD X-Git-Tag: release/2.13.10-1~175 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=39ee8325dacce86fcc70e7d0071cddb6f06bb408;p=lilypond.git Fix STEPMAKE_GET_VERSION for OpenBSD --- diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4 index 83c07c3a2d..cdb6dc3cfb 100644 --- a/stepmake/aclocal.m4 +++ b/stepmake/aclocal.m4 @@ -32,9 +32,13 @@ 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]*\.[0-9]' \ - | head -n 1 \ - | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\" + eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | + grep -E '(^| )[0-9][0-9]*\.[0-9]' | + head -n 1 | + tr ' ' '\n' | + sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | + grep -E '(^| )[0-9][0-9]*\.[0-9]' | + head -n 1\`\" if test -z "$_ver"; then ## If empty, try date [fontforge]