nlopess Wed Sep 5 15:12:16 2007 UTC
Modified files:
/phpdoc/scripts/iniupdate cvs-versions.php update-all.php
Log:
suppress warnings when the download doesnt complete correctly
add colors to the msgs :P
fix checkout of cvs versions
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/cvs-versions.php?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/scripts/iniupdate/cvs-versions.php
diff -u phpdoc/scripts/iniupdate/cvs-versions.php:1.4
phpdoc/scripts/iniupdate/cvs-versions.php:1.5
--- phpdoc/scripts/iniupdate/cvs-versions.php:1.4 Thu Aug 9 17:55:16 2007
+++ phpdoc/scripts/iniupdate/cvs-versions.php Wed Sep 5 15:12:16 2007
@@ -75,7 +75,7 @@
// fetch cvs versions
$file = file_get_contents('./cvs-versions');
-preg_match_all('/PHP_(\d)_CVS=(\w+)/', $file, $data, PREG_SET_ORDER);
+preg_match_all('/PHP_(\d+)_CVS=(\w+)/', $file, $data, PREG_SET_ORDER);
$cvs_versions = $cvs_branches = array();
foreach ($data as $v) {
@@ -85,7 +85,7 @@
$version = make_cvs_version(substr($v[2], 4));
}
$cvs_versions["php_$v[1]_cvs"] = $version;
- $cvs_branches[$v[1]] = $v[2];
+ $cvs_branches["php_$v[1]_cvs"] = $v[2];
}
$tags = array_merge(array_keys($cvs_versions), $tags);
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/update-all.php?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/scripts/iniupdate/update-all.php
diff -u phpdoc/scripts/iniupdate/update-all.php:1.3
phpdoc/scripts/iniupdate/update-all.php:1.4
--- phpdoc/scripts/iniupdate/update-all.php:1.3 Wed Sep 5 14:48:00 2007
+++ phpdoc/scripts/iniupdate/update-all.php Wed Sep 5 15:12:16 2007
@@ -33,7 +33,10 @@
$dir = 'php-'.strtr(substr($tag, 4), '_', '.');
$filename = "$dir.tar.gz";
- copy("http://museum.php.net/php$majorversion/$filename", $filename);
+ if ([EMAIL PROTECTED]("http://museum.php.net/php$majorversion/$filename",
$filename)) {
+ echo "\033[1;31mFAILED\033[0m\n";
+ return;
+ }
$cmds[] = "tar xfz $filename";
$cmds[] = "mv $dir $tag";
@@ -45,7 +48,7 @@
exec($cmd);
}
- echo "done\n";
+ echo "\033[1;32mdone\033[0m\n";
}