svn: /phpdoc/doc-base/trunk/scripts/ build-chms.php

From: Date: Wed, 18 May 2011 11:06:37 +0000
Subject: svn: /phpdoc/doc-base/trunk/scripts/ build-chms.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8145@lists.php.net to get a copy of this message
rquadling Wed, 18 May 2011 11:06:37 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311178 Log: Allow the build to run without rsync. Daily non-rsync'd build runs at 6PM localtime. Weekly rsync'd build runs on Fridays at 6AM localtime. Changed paths: U phpdoc/doc-base/trunk/scripts/build-chms.php Modified: phpdoc/doc-base/trunk/scripts/build-chms.php =================================================================== --- phpdoc/doc-base/trunk/scripts/build-chms.php 2011-05-18 10:21:28 UTC (rev 311177) +++ phpdoc/doc-base/trunk/scripts/build-chms.php 2011-05-18 11:06:37 UTC (rev 311178) @@ -101,6 +101,11 @@ } /** + * Allow the build to run without rsync. + */ + $b_AllowRsync = !in_array('--norsync' $argv); + + /** * Hold the results of this build */ $a_BuildHistory = array(); @@ -185,7 +190,10 @@ /** * Update the CHM on the rsync server */ - execute_task('- rsync', PATH_SCP, ' -batch -v -i "' . PATH_PPK . '" -l bjori "' . PATH_DOC . '\\chmfiles\\php_manual_' . $lang . '.chm" rsync.php.net:/home/bjori/manual-chms-new/', 'rsync_' . $lang, false); + if ($b_AllowRsync) + { + execute_task('- rsync', PATH_SCP, ' -batch -v -i "' . PATH_PPK . '" -l bjori "' . PATH_DOC . '\\chmfiles\\php_manual_' . $lang . '.chm" rsync.php.net:/home/bjori/manual-chms-new/', 'rsync_' . $lang, false); + } /** * Check if we are supposed to build the enhanced version @@ -246,7 +254,10 @@ /** * Update the CHM on the rsync server */ - execute_task('- [Enhanced] rsync', PATH_SCP, ' -batch -v -i "' . PATH_PPK . '" -l bjori "' . PATH_DOC . '\\chmfiles\\php_enhanced_' . $lang . '.chm" rsync.php.net:/home/bjori/manual-chms-new/', 'rsync_enhanced_' . $lang, false); + if ($b_AllowRsync) + { + execute_task('- [Enhanced] rsync', PATH_SCP, ' -batch -v -i "' . PATH_PPK . '" -l bjori "' . PATH_DOC . '\\chmfiles\\php_enhanced_' . $lang . '.chm" rsync.php.net:/home/bjori/manual-chms-new/', 'rsync_enhanced_' . $lang, false); + } } /**

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