gwynne          Mon Nov 10 01:53:53 2008 UTC

  Modified files:              
    /SVNROOT    run-conversion.php 
  Log:
  don't re-checkout if we don't need to, it takes forever
  
http://cvs.php.net/viewvc.cgi/SVNROOT/run-conversion.php?r1=1.31&r2=1.32&diff_format=u
Index: SVNROOT/run-conversion.php
diff -u SVNROOT/run-conversion.php:1.31 SVNROOT/run-conversion.php:1.32
--- SVNROOT/run-conversion.php:1.31     Sun Nov  9 22:34:07 2008
+++ SVNROOT/run-conversion.php  Mon Nov 10 01:53:53 2008
@@ -7,7 +7,7 @@
 
 // 
-----------------------------------------------------------------------------------------------------------------------------
 // Constants
-$version = substr('$Revision: 1.31 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.32 $', strlen('$Revision: '), -2);
 
 $passes = array(
     'processcvs',       // Process CVS modules
@@ -552,9 +552,11 @@
         $branchList[$realBranch] = strtotime(substr($xml, strpos($xml, 
'<date>') + 6, strpos($xml, '</date>')));
     }
     
-    run_command('exec svn checkout file:///' . 
escapeshellarg($GLOBALS['options']['svnroot'] . '/php-src/php-src') . ' ' .
-        escapeshellarg($GLOBALS['temp_path'] . DIRECTORY_SEPARATOR . 
'php-src-co') . ' 2>&1 > ' .
-        escapeshellarg($GLOBALS['temp_path'] . DIRECTORY_SEPARATOR . 
'co-output'));
+    if (!file_exists($GLOBALS['temp_path'] . DIRECTORY_SEPARATOR . 
'php-src-co')) {
+        run_command('exec svn checkout file:///' . 
escapeshellarg($GLOBALS['options']['svnroot'] . '/php-src/php-src') . ' ' .
+            escapeshellarg($GLOBALS['temp_path'] . DIRECTORY_SEPARATOR . 
'php-src-co') . ' 2>&1 > ' .
+            escapeshellarg($GLOBALS['temp_path'] . DIRECTORY_SEPARATOR . 
'co-output'));
+    }
     $oldcwd = getcwd();
     chdir($GLOBALS['temp_path'] . DIRECTORY_SEPARATOR . 'php-src-co');
     
@@ -578,6 +580,8 @@
         }
         append_prop_line('trunk' . DIRECTORY_SEPARATOR . 'ext', 
"^/pecl/{$link}/trunk {$link}");
     }
+    
+    chdir($oldcwd);
 }
 
 // 
-----------------------------------------------------------------------------------------------------------------------------



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to