nlopess Wed Sep 5 15:32:33 2007 UTC
Modified files: /phpdoc/scripts/iniupdate cvs-versions.php run.php Log: add option to skip downloading/updating things (i.e. no internet access) http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/cvs-versions.php?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/scripts/iniupdate/cvs-versions.php diff -u phpdoc/scripts/iniupdate/cvs-versions.php:1.5 phpdoc/scripts/iniupdate/cvs-versions.php:1.6 --- phpdoc/scripts/iniupdate/cvs-versions.php:1.5 Wed Sep 5 15:12:16 2007 +++ phpdoc/scripts/iniupdate/cvs-versions.php Wed Sep 5 15:32:33 2007 @@ -26,7 +26,11 @@ if ($tags) return $tags; chdir('sources'); - `cvs -q -d :pserver:[EMAIL PROTECTED]:/repository co php-src > /dev/null`; + + if (empty($GLOBALS['skip_download'])) { + `cvs -q -d :pserver:[EMAIL PROTECTED]:/repository co php-src > /dev/null`; + } + chdir('php-src'); $log = explode("\n", `cvs log ChangeLog`); http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/run.php?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/scripts/iniupdate/run.php diff -u phpdoc/scripts/iniupdate/run.php:1.1 phpdoc/scripts/iniupdate/run.php:1.2 --- phpdoc/scripts/iniupdate/run.php:1.1 Thu Aug 9 17:55:16 2007 +++ phpdoc/scripts/iniupdate/run.php Wed Sep 5 15:32:33 2007 @@ -19,7 +19,30 @@ @mkdir('sources'); -require_once './update-all.php'; +array_shift($argv); + +foreach ($argv as $arg) { + if ($arg === '-h' || $arg === '--help') { + echo <<< HELP +possible options: +--skip-download Do not download or update anything + + +HELP; + exit; + + } elseif ($arg === '--skip-download') { + $skip_download = true; + } else { + die("option not recognized: '$arg'\n"); + } + +} + + +if (empty($skip_download)) { + require_once './update-all.php'; +} if (is_file('ini_changelog.sqlite')) { require_once './make_db.php'; @@ -29,4 +52,3 @@ } require_once './ini-update.php'; -