From: Brian West Date: Sat, 31 Mar 2007 17:25:10 +0000 (+0000) Subject: fix err when version only has 2 dots X-Git-Tag: v1.0-beta1~628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd1d59a0088f9f2e2eb6647a797abdd220d897c7;p=thirdparty%2Ffreeswitch.git fix err when version only has 2 dots git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4818 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/bootstrap.sh b/bootstrap.sh index 829d05fd29..4a6f69b1f0 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -68,8 +68,12 @@ lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'` IFS=.; set $lt_version; IFS=' ' lt_status="good" -if test "$1" -lt "2"; then - if test "$2" -lt "5" -o "$2" = "5" -a "$3" -lt "14" ; then +a=$[$1+0] +b=$[$2+0] +c=$[$3+0] + +if test "$a" -lt "2"; then + if test "$b" -lt "5" -o "$b" = "5" -a "$c" -lt "14" ; then lt_status="bad" fi else @@ -85,7 +89,6 @@ echo " to build FreeSWITCH from SVN." exit 1 fi - echo "Entering directory ${LIBDIR}/apr" cd ${LIBDIR}/apr