fix err when version only has 2 dots

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4818 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2007-03-31 17:25:10 +00:00
parent d566a1bece
commit bd1d59a008
1 changed files with 6 additions and 3 deletions

View File

@ -68,8 +68,12 @@ lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
IFS=.; set $lt_version; IFS=' ' IFS=.; set $lt_version; IFS=' '
lt_status="good" lt_status="good"
if test "$1" -lt "2"; then a=$[$1+0]
if test "$2" -lt "5" -o "$2" = "5" -a "$3" -lt "14" ; then 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" lt_status="bad"
fi fi
else else
@ -85,7 +89,6 @@ echo " to build FreeSWITCH from SVN."
exit 1 exit 1
fi fi
echo "Entering directory ${LIBDIR}/apr" echo "Entering directory ${LIBDIR}/apr"
cd ${LIBDIR}/apr cd ${LIBDIR}/apr