[OpenLayers-Commits] r11164 - trunk/openlayers/tools

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Feb 21 05:33:59 EST 2011


Author: crschmidt
Date: 2011-02-21 02:33:59 -0800 (Mon, 21 Feb 2011)
New Revision: 11164

Modified:
   trunk/openlayers/tools/update_dev_dir.sh
Log:
check SVN revision online rather than via 'svn up' and put svn up inside the 
revision check loop.


Modified: trunk/openlayers/tools/update_dev_dir.sh
===================================================================
--- trunk/openlayers/tools/update_dev_dir.sh	2011-02-21 10:17:22 UTC (rev 11163)
+++ trunk/openlayers/tools/update_dev_dir.sh	2011-02-21 10:33:59 UTC (rev 11164)
@@ -2,11 +2,9 @@
 
 # Used to update http://openlayers.org/dev/ 
 
-svn revert -R /osgeo/openlayers/docs/dev
-svn up /osgeo/openlayers/docs/dev
 
 # Get current 'Last Changed Rev'
-REV=`svn info /osgeo/openlayers/docs/dev/ | grep 'Revision' | awk '{print $2}'`
+REV=`svn info http://svn.openlayers.org/ | grep 'Revision' | awk '{print $2}'`
 
 # Get the last svn rev
 touch /tmp/ol_svn_rev
@@ -14,6 +12,8 @@
 
 # If they're not equal, do some work.
 if [ ! o$REV = $OLD_REV ]; then
+    svn revert -R /osgeo/openlayers/docs/dev
+    svn up /osgeo/openlayers/docs/dev
 
     cd /osgeo/openlayers/docs/dev/tools/ 
     python exampleparser.py



More information about the Commits mailing list