cvs: phpdoc /scripts/iniupdate update-all.php

From: Date: Fri, 14 Sep 2007 19:28:40 +0000
Subject: cvs: phpdoc /scripts/iniupdate update-all.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-20@lists.php.net to get a copy of this message
nlopess Fri Sep 14 19:28:40 2007 UTC Modified files: /phpdoc/scripts/iniupdate update-all.php Log: let's try to have a better checkout of php sources http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/update-all.php?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/scripts/iniupdate/update-all.php diff -u phpdoc/scripts/iniupdate/update-all.php:1.9 phpdoc/scripts/iniupdate/update-all.php:1.10 --- phpdoc/scripts/iniupdate/update-all.php:1.9 Thu Sep 6 17:52:07 2007 +++ phpdoc/scripts/iniupdate/update-all.php Fri Sep 14 19:28:40 2007 @@ -105,8 +105,19 @@ foreach ($cvs_branches as $tag => $branch) { echo "Getting tag: $tag... "; - $cmd = "cvs -q -d :pserver:cvsread@cvs.php.net:/repository co -d ".strtolower($tag)." -r $branch php-src"; - exec($cmd); + $dir = strtolower($tag); + + // if the dir already exists, perform an update rather than a checkout + if (is_dir($dir)) { + cd $dir && cvs -q up -dP; + + // zend dirs require special handling because cvs is damn stupid.. + if (is_dir("$dir/Zend")) cd $dir/Zend && cvs -q up -dP; + if (is_dir("$dir/ZendEngine2")) cd $dir/ZendEngine2 && cvs -q up -dP; + } else { + cvs -q -d :pserver:cvsread@cvs.php.net:/repository co -d $dir -r $branch -P php-src; + } + echo "done\n"; }

« previous php.doc.cvs (#20) next »