Commit Diff
Diff:
8d8201502f79bfe6fdaf8e94a11544332bb9630a
419ff38a07cb0b1637b444c96cd6868a7a9e5524
Commit:
419ff38a07cb0b1637b444c96cd6868a7a9e5524
Tree:
0dcf35f6433e3035d7e9eff091e926b33b84889c
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Sun Jan 27 11:25:58 2013 UTC
Message:
autogen.sh: Don't use "egrep -o", use "sed" "egrep -o" isn't portable and not available on OpenBSD, for example. So let's use sed instead to get the automake version. The expression used now is less specific but should work as well ...
blob - b1fa883d76fe27138544181b3c3aa9c15f74a055
blob + 08cd4c2e05271e434c22e86e173a322dd6e286c7
--- autogen.sh
+++ autogen.sh
@@ -153,7 +153,7 @@ echo "Searching for required tools ..."
[ -z "$AUTOMAKE" ] && Notfound automake
[ -z "$AUTOCONF" ] && Notfound autoconf
-AM_VERSION=`$AUTOMAKE --version|head -n 1|egrep -o "([1-9]\.[0-9]+(\.[0-9]+)*)"`
+AM_VERSION=`$AUTOMAKE --version | head -n 1 | sed -e 's/.* //g'`
ifs=$IFS; IFS="."; set $AM_VERSION; IFS=$ifs
AM_MAJOR="$1"; AM_MINOR="$2"; AM_PATCHLEVEL="$3"
echo "Detected automake $AM_VERSION ..."
IRCNow