summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-07 00:48:57 +0000
committerYang Tse <yangsita@gmail.com>2009-06-07 00:48:57 +0000
commitd71c1514f2b18731e54cc317e5390d7dcf572c8a (patch)
treea59f0ba69a659bc33cc6099d170017ac8aa4dbb1
parent2df75e84e7402027b30e739bfec1f381a0f04349 (diff)
downloadcurl-d71c1514f2b18731e54cc317e5390d7dcf572c8a.tar.gz
debug test a non-greedy pattern
-rwxr-xr-xbuildconf6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildconf b/buildconf
index 78f5d9533..2e563808e 100755
--- a/buildconf
+++ b/buildconf
@@ -229,9 +229,9 @@ fi
echo "buildconf: libtool version $lt_version (ok)"
dbg1=`$libtool --version 2>/dev/null|head -n 1`
-dbg2=`$libtool --version 2>/dev/null|head -n 1|sed -e "s/(.*)//"`
-dbg3=`$libtool --version 2>/dev/null|head -n 1|sed -e "s/(.*)//" -e "s/^[^0-9]*//g"`
-dbg4=`$libtool --version 2>/dev/null|head -n 1|sed -e "s/(.*)//" -e "s/^[^0-9]*//g" -e "s/[- ].*//"`
+dbg2=`$libtool --version 2>/dev/null|head -n 1|sed -e "s/([^)]*)//g"`
+dbg3=`$libtool --version 2>/dev/null|head -n 1|sed -e "s/([^)]*)//g" -e "s/^[^0-9]*//g"`
+dbg4=`$libtool --version 2>/dev/null|head -n 1|sed -e "s/([^)]*)//g" -e "s/^[^0-9]*//g" -e "s/[- ].*//"`
dbg5=`echo $dbg4|sed -e "s/\([a-z]*\)$//"`
old_IFS=$IFS; IFS='.'; set $dbg5; IFS=$old_IFS
dbg6=$1