[Freeswitch-svn] [commit] r4818 - freeswitch/trunk

Freeswitch SVN brian at freeswitch.org
Sat Mar 31 13:25:11 EDT 2007


Author: brian
Date: Sat Mar 31 13:25:10 2007
New Revision: 4818

Modified:
   freeswitch/trunk/bootstrap.sh

Log:
fix err when version only has 2 dots

Modified: freeswitch/trunk/bootstrap.sh
==============================================================================
--- freeswitch/trunk/bootstrap.sh	(original)
+++ freeswitch/trunk/bootstrap.sh	Sat Mar 31 13:25:10 2007
@@ -68,8 +68,12 @@
 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 @@
 exit 1
 fi
 
-
 echo "Entering directory ${LIBDIR}/apr"
 cd ${LIBDIR}/apr
 



More information about the Freeswitch-svn mailing list