attempt to fix regex
authorYang Tse <yangsita@gmail.com>
Sat, 6 Jun 2009 14:27:28 +0000 (14:27 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 6 Jun 2009 14:27:28 +0000 (14:27 +0000)
buildconf

index c05ee99..1fc8ee1 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -191,7 +191,7 @@ else
   libtoolize=`findtool $LIBTOOLIZE`
 fi
 
-lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/(.*)//' -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
+lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/[(].*[)]//' -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
 if test -z "$lt_pversion"; then
   echo "buildconf: libtool not found."
   echo "            You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"
@@ -228,6 +228,8 @@ fi
 
 echo "buildconf: libtool version $lt_version (ok)"
 
+exit 0
+
 if test -f "$libtoolize"; then
   echo "buildconf: libtoolize found"
 else