[mapguide-commits] r7326 - branches/2.5/Installer/scripts

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Jan 20 13:40:54 PST 2013


Author: jng
Date: 2013-01-20 13:40:53 -0800 (Sun, 20 Jan 2013)
New Revision: 7326

Modified:
   branches/2.5/Installer/scripts/build.sh
Log:
Measure build time of build.sh

Modified: branches/2.5/Installer/scripts/build.sh
===================================================================
--- branches/2.5/Installer/scripts/build.sh	2013-01-20 13:34:36 UTC (rev 7325)
+++ branches/2.5/Installer/scripts/build.sh	2013-01-20 21:40:53 UTC (rev 7326)
@@ -5,6 +5,7 @@
 BUILDNUM=${APIVERSION}.0
 BUILDROOT=`pwd`
 INSTALLROOT=/usr/local/mapguideopensource-${BUILDNUM}
+#INSTALLROOT=/usr/local/mapguideopensource-trunk
 LOCKFILEDIR=/var/lock/mgserver
 MGSOURCE=${BUILDROOT}/mgdev
 VERFILE=${MGSOURCE}/Common/ProductVersion.h
@@ -76,6 +77,9 @@
         svn export -q -r ${REVISION} ${SVNROOT}${SVNRELPATH} ${MGSOURCE}
     fi
 fi
+
+start_time=`date +%s`
+
 echo "Building Revision ${BUILDNUM}.${REVISION}" 
 cd ${MGSOURCE}
 
@@ -133,6 +137,8 @@
 make install
 check_build
 
+end_time=`date +%s`
+
 echo "Preparing binaries for packaging"
 # Prepare binaries for packaging by removing unnecessary
 # .la and .a files and stripping unneeded symbols from the binaries
@@ -164,3 +170,4 @@
 tar -zcf bin/mapguideopensource-${BUILDNUM}.${REVISION}.tar.gz ${INSTALLROOT} ${LOCKFILEDIR}
 
 echo "Build complete!"
+echo Main build execution: `expr $end_time - $start_time` s



More information about the mapguide-commits mailing list