summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2015-04-14 20:11:24 +0200
committerJens Geyer <jensg@apache.org>2015-04-14 20:11:24 +0200
commita4fc440e51970c8c5d745ac118ba4ffdfdbd2191 (patch)
tree700ba563db64390dfe5547837244784e60527110 /bootstrap.sh
parent1673adf94a381d66db2f0a062c636b24937473f7 (diff)
downloadthrift-a4fc440e51970c8c5d745ac118ba4ffdfdbd2191.tar.gz
THRIFT-3071 fix bootstrap.sh on MinGW
Client: Build process Patch: James E. King, III <jim.king@simplivity.com> This closes #438
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 1a161c86e..52ecda47b 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -40,7 +40,7 @@ fi
# we require automake 1.13 or later
# check must happen externally due to use of newer macro
-AUTOMAKE_VERSION=`automake --version | head -n1 | rev | sed -e 's/\s.*$//' | rev`
+AUTOMAKE_VERSION=`automake --version | grep automake | egrep -o '([0-9]{1,}\.)+[0-9]{1,}'`
if [ "$AUTOMAKE_VERSION" \< "1.13" ]; then
echo >&2 "automake version $AUTOMAKE_VERSION is too old (need 1.13 or later)"
exit 1