cvs: peardoc /scripts pearwebbuild.php
| From: | Brett Bieber | Date: | Tue, 18 Nov 2008 21:44:48 +0000 |
| Subject: | cvs: peardoc /scripts pearwebbuild.php | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-11287@lists.php.net to get a copy of this message | ||
saltybeagle Tue Nov 18 21:44:48 2008 UTC
Modified files:
/peardoc/scripts pearwebbuild.php
Log:
Fix cvs checkout code to use anoncvs document usage for updating cvs.
http://cvs.php.net/viewvc.cgi/peardoc/scripts/pearwebbuild.php?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/scripts/pearwebbuild.php
diff -u peardoc/scripts/pearwebbuild.php:1.1 peardoc/scripts/pearwebbuild.php:1.2
--- peardoc/scripts/pearwebbuild.php:1.1 Tue Nov 18 20:29:45 2008
+++ peardoc/scripts/pearwebbuild.php Tue Nov 18 21:44:48 2008
@@ -5,27 +5,32 @@
* This script runs the configure scripts, and generates the bightml, chunked, and pearweb
* files for use in the pearweb project.
* Currently at http://ucommbieber.unl.edu/peardoc/build/,
rsync://ucommbieber.unl.edu/peardoc
+ *
+ * Usage: php pearwebuild.php [updatecvs [updatephd]]
*/
$cwd = getcwd();
-chdir(dirname(dirname(__FILE__)));
-
if (isset($_SERVER['argv'], $_SERVER['argv'][1])
&& $_SERVER['argv'][1] == 'updatecvs') {
+ chdir(dirname(dirname(dirname(__FILE__))));
// Update cvs
- shell_exec('cvs -d :pserver:anoncvs@cvs.php.net:/repository checkout peardoc
'.dirname(dirname(__FILE__)));
+ shell_exec('cvs -d :pserver:cvsread@cvs.php.net:/repository checkout peardoc');
}
if (isset($_SERVER['argv'], $_SERVER['argv'][2])
&& $_SERVER['argv'][2] == 'updatephd') {
+ chdir(dirname(dirname(dirname(__FILE__))));
// Update cvs
- shell_exec('cvs -d :pserver:anoncvs@cvs.php.net:/repository checkout phd
'.dirname(dirname(dirname(__FILE__)))).'/phd';
+ shell_exec('cvs -d :pserver:cvsread@cvs.php.net:/repository checkout phd');
+ // Update phd
shell_exec('pear upgrade -f
'.dirname(dirname(dirname(__FILE__))).'/phd/package.xml');
}
@unlink(dirname(__FILE__).'/build.log');
+chdir(dirname(dirname(__FILE__)));
+
logAndEcho("Starting Build\n".date('Y-m-d H:i:s'));
foreach (array('de', 'en', 'es', 'fr', 'hu',
'ja', 'nl', 'pl', 'ru') as $lang) {