[mapguide-commits] r6584 - trunk/Installer/scripts

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Apr 22 02:20:09 EDT 2012


Author: jng
Date: 2012-04-21 23:20:09 -0700 (Sat, 21 Apr 2012)
New Revision: 6584

Modified:
   trunk/Installer/scripts/build.sh
Log:
Do svn export if the directory we wanted to preserve doesn't exist

Modified: trunk/Installer/scripts/build.sh
===================================================================
--- trunk/Installer/scripts/build.sh	2012-04-20 18:28:30 UTC (rev 6583)
+++ trunk/Installer/scripts/build.sh	2012-04-22 06:20:09 UTC (rev 6584)
@@ -17,9 +17,13 @@
 sudo rm -rf ${INSTALLROOT}
 
 REVISION=`svn info ${SVNROOT}${SVNRELPATH} | perl revnum.pl`
-echo ${REVISION} > revnum.txt
-if [ ${PRESERVE_BUILD_ROOT} != 1 ];
+sudo echo ${REVISION} > revnum.txt
+if [ ${PRESERVE_BUILD_ROOT} != 1 -o ! -d ${MGSOURCE} ];
 then
+    if [ ! -d ${MGSOURCE} ];
+    then
+    	echo "Build root ${MGSOURCE} does not exist. Doing svn export"
+    fi
     echo "Exporting svn revision ${REVISION}"
     if [ ${LOCALSVN} = 1 ] 
     then



More information about the mapguide-commits mailing list