Module: ngircd.git Branch: master Commit: 039a939cb8a85f242a017cb4c68003af2b02dfca URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=039a9...
Author: Alexander Barton alex@barton.de Date: Mon Sep 24 18:01:47 2012 +0200
autogen.sh: detect automake version format a.b.c and a.b
---
autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autogen.sh b/autogen.sh index d47d750..47c476c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -153,7 +153,7 @@ echo "Searching for required tools ..." [ -z "$AUTOMAKE" ] && Notfound automake [ -z "$AUTOCONF" ] && Notfound autoconf
-AM_VERSION=`$AUTOMAKE --version | egrep -o "([0-9]+.[0-9]+.[0-9]+)"` +AM_VERSION=`$AUTOMAKE --version|head -n 1|egrep -o "([1-9].[0-9]+(.[0-9]+)*)"` ifs=$IFS; IFS="."; set $AM_VERSION; IFS=$ifs AM_MAJOR="$1"; AM_MINOR="$2"; AM_PATCHLEVEL="$3"
ngircd-commits@lists.barton.de