nlopess Thu Sep 6 19:29:58 2007 UTC
Modified files:
/phpdoc/scripts/iniupdate cvs-versions.php ini-update.php
make_db.php pecl.php
Log:
start working on PECL releases
#enough for today..
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/cvs-versions.php?r1=1.10&r2=1.11&diff_format=u
Index: phpdoc/scripts/iniupdate/cvs-versions.php
diff -u phpdoc/scripts/iniupdate/cvs-versions.php:1.10
phpdoc/scripts/iniupdate/cvs-versions.php:1.11
--- phpdoc/scripts/iniupdate/cvs-versions.php:1.10 Thu Sep 6 18:47:22 2007
+++ phpdoc/scripts/iniupdate/cvs-versions.php Thu Sep 6 19:29:58 2007
@@ -3,7 +3,7 @@
+----------------------------------------------------------------------+
| ini doc settings updater |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2005 The PHP Group |
+ | Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -65,6 +65,25 @@
return $tags;
}
+
+/** fetch the PECL's packages releases that have been downloaded */
+function get_pecl_releases_local()
+{
+ foreach (scandir('sources') as $dir) {
+ if ($dir !== '.' &&
+ $dir !== '..' &&
+ $dir !== 'php-src' &&
+ $dir !== 'pecl' &&
+ substr_compare($dir, 'PHP_', 0, 4, true) !== 0)
+ {
+ $releases[] = $dir;
+ }
+ }
+
+ return $releases;
+}
+
+
// if run alone, it means debug mode and thus no slow network access
if (basename(__FILE__) == $_SERVER['PHP_SELF']) {
$skip_download = true;
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/ini-update.php?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/scripts/iniupdate/ini-update.php
diff -u phpdoc/scripts/iniupdate/ini-update.php:1.7
phpdoc/scripts/iniupdate/ini-update.php:1.8
--- phpdoc/scripts/iniupdate/ini-update.php:1.7 Wed Sep 5 17:33:19 2007
+++ phpdoc/scripts/iniupdate/ini-update.php Thu Sep 6 19:29:58 2007
@@ -21,9 +21,9 @@
/* Configuration Options */
-$php_src_dir = '../../../php-src'; //php-src path
-$pecl_dir = '../../../pecl'; //pecl path
-$phpdoc_dir = '../..'; //phpdoc path
+$php_src_dir = 'sources/php-src'; //php-src path
+$pecl_dir = 'sources/pecl'; //pecl path
+$phpdoc_dir = '../..'; //phpdoc path
/******* END of configurations *****/
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/make_db.php?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/scripts/iniupdate/make_db.php
diff -u phpdoc/scripts/iniupdate/make_db.php:1.4
phpdoc/scripts/iniupdate/make_db.php:1.5
--- phpdoc/scripts/iniupdate/make_db.php:1.4 Wed Sep 5 17:17:24 2007
+++ phpdoc/scripts/iniupdate/make_db.php Thu Sep 6 19:29:58 2007
@@ -24,7 +24,15 @@
die("Couldn't create the DB: $error");
}
-$sql = 'CREATE TABLE changelog (
+$sql = '
+CREATE TABLE pecl-changelog (
+ package TEXT,
+ version TEXT,
+ name TEXT,
+ value TEXT
+);
+
+CREATE TABLE changelog (
name TEXT PRIMARY KEY,';
foreach($tags as $tag) {
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/pecl.php?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/scripts/iniupdate/pecl.php
diff -u phpdoc/scripts/iniupdate/pecl.php:1.7
phpdoc/scripts/iniupdate/pecl.php:1.8
--- phpdoc/scripts/iniupdate/pecl.php:1.7 Thu Sep 6 16:03:25 2007
+++ phpdoc/scripts/iniupdate/pecl.php Thu Sep 6 19:29:58 2007
@@ -78,6 +78,8 @@
/** update PECL sources */
function update_pecl_sources()
{
+ `cvs -q -d :pserver:[EMAIL PROTECTED]:/repository co pecl > /dev/null`;
+
foreach (get_pecl_packages() as $pkg) {
$releases = get_pecl_releases($pkg);