[Freeswitch-svn] [commit] r11736 - freeswitch/trunk/build

FreeSWITCH SVN anthm at freeswitch.org
Tue Feb 10 14:57:54 PST 2009


Author: anthm
Date: Tue Feb 10 16:57:54 2009
New Revision: 11736

Log:
tweak turbobuild.sh

Modified:
   freeswitch/trunk/build/turbo_build.sh

Modified: freeswitch/trunk/build/turbo_build.sh
==============================================================================
--- freeswitch/trunk/build/turbo_build.sh	(original)
+++ freeswitch/trunk/build/turbo_build.sh	Tue Feb 10 16:57:54 2009
@@ -1,12 +1,19 @@
 arg=$1 ; shift
+prefix=`cat config.log | grep ^prefix=\' | awk -F \' '{print $2}'`
+if [ -z $prefix ] ; then
+    prefix="/usr/local/freeswitch"
+fi
+unset VERBOSE
 switch_srcdir=`pwd`
 if [ -z $MAKE ] ; then
     MAKE=make
 fi
 
 if [ -z $arg ] ; then
-    $MAKE clean
-    $MAKE -j freeswitch
+    echo "Cleaning tree...."
+    $MAKE clean modwipe 2>&1 > /dev/null
+    echo "Building core...."
+    $MAKE -j freeswitch 2>&1 > /dev/null
     MODS=`cat modules.conf | grep -v \#`
     for i in $MODS ; do 
 	MOD_NAME=`echo $i | sed -e 's|^.*/||'`
@@ -14,6 +21,7 @@
 	touch /tmp/$MOD_NAME.tmp
 	$0 $MOD_NAME $MOD_DIR
     done
+    echo "Building mods...."
     while [ 1 = 1 ] ; do
 	x=0
 	for i in $MODS ; do
@@ -23,7 +31,10 @@
 	done
 	if [ $x = 0 ] ; then
 	    echo Build finished. Making install
-	    $MAKE install
+	    $MAKE install_core  2>&1 > /dev/null
+	    mods=`find src/mod -name \*.so | grep .libs`
+	    /bin/cp -fp $mods $prefix/mod
+	    echo installed core and $mods
 	    exit;
 	fi
 	sleep 1
@@ -41,14 +52,14 @@
 MOD_NAME=$1 ; shift
 MOD_DIR=$1 ; shift
 
-echo "Making module in $MOD_NAME"
+#echo "Making module in $MOD_NAME..."
 if [ -f $MOD_DIR/Makefile ] ; then 
-    cd $MOD_DIR && BASE=$switch_srcdir $MAKE -j
+    cd $MOD_DIR && BASE=$switch_srcdir $MAKE -j 2>&1 > /dev/null
 else
-    cd $MOD_DIR && BASE=$switch_srcdir $MAKE -j -f $switch_srcdir/build/modmake.rules
+    cd $MOD_DIR && BASE=$switch_srcdir $MAKE -j -f $switch_srcdir/build/modmake.rules  2>&1 > /dev/null
 fi
 
-echo "Finished making module in $MOD_NAME"
+#echo "Finished making module in $MOD_NAME"
 sleep 1
 rm /tmp/$MOD_NAME.tmp
 



More information about the Freeswitch-svn mailing list