cvs: docweb /scripts generation.sh rev.php

From: Date: Mon, 01 Nov 2004 13:24:40 +0000
Subject: cvs: docweb /scripts generation.sh rev.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-412@lists.php.net to get a copy of this message
nlopess Mon Nov 1 08:24:40 2004 EDT Modified files: /docweb/scripts generation.sh rev.php Log: trying to put revcheck working... fixed the peardoc stuff also http://cvs.php.net/diff.php/docweb/scripts/generation.sh?r1=1.5&r2=1.6&ty=u Index: docweb/scripts/generation.sh diff -u docweb/scripts/generation.sh:1.5 docweb/scripts/generation.sh:1.6 --- docweb/scripts/generation.sh:1.5 Mon Nov 1 05:42:53 2004 +++ docweb/scripts/generation.sh Mon Nov 1 08:24:36 2004 @@ -16,10 +16,10 @@ # PEAR echo "Generating PEAR database" -php -q ./rev.php peardoc +php -q ./rev.php pear echo "... done." echo "Generating PEAR pictures" -php -q ./gen_picture_info.php peardoc +php -q ./gen_picture_info.php pear echo "... done" http://cvs.php.net/diff.php/docweb/scripts/rev.php?r1=1.9&r2=1.10&ty=u Index: docweb/scripts/rev.php diff -u docweb/scripts/rev.php:1.9 docweb/scripts/rev.php:1.10 --- docweb/scripts/rev.php:1.9 Mon Nov 1 05:36:17 2004 +++ docweb/scripts/rev.php Mon Nov 1 08:24:36 2004 @@ -65,7 +65,7 @@ // grab the documentation type $TYPE = array_shift($argv); -if (!in_array($TYPE, array('php', 'smarty', 'peardoc'))) { +if (!in_array($TYPE, array('php', 'smarty', 'pear'))) { echo "Error: The revcheck script is not available yet for $TYPE\n"; exit(0); } @@ -137,8 +137,7 @@ size TEXT, mdate TEXT, maintainer TEXT, - status TEXT, - UNIQUE(lang, dir, name) + status TEXT ); SQL; @@ -199,7 +198,7 @@ if (preg_match_all("!<file(.+)/\\s?>!U", $txml, $matches)) { $files = parse_attr_string($matches[1]); foreach ($files as $file) { - $SQL_BUFF .= "INSERT INTO wip VALUES ('$lang', '" . sqlite_escape_string($file['name']) . "', '" . sqlite_escape_string($file['person']) . "', '" . sqlite_escape_string($file['type']) . "');\n"; + $SQL_BUFF .= "INSERT INTO wip VALUES ('$lang', '" . sqlite_escape_string($file['name']) . "', '" . sqlite_escape_string($file['person']) . "', '" . sqlite_escape_string(isset($file['type']) ? $file['type'] : 'translation') . "');\n"; } } }

« previous php.doc.web (#412) next »