cvs: phpdoc / configure.php manual.xml.in /scripts file-entities.php.in missing-entities.php.in
| From: | Hannes Magnusson | Date: | Wed, 07 Jan 2009 21:22:13 +0000 |
| Subject: | cvs: phpdoc / configure.php manual.xml.in /scripts file-entities.php.in missing-entities.php.in | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2975@lists.php.net to get a copy of this message | ||
bjori Wed Jan 7 21:22:13 2009 UTC
Modified files:
/phpdoc configure.php manual.xml.in
/phpdoc/scripts file-entities.php.in missing-entities.php.in
Log:
Remove the missing entities and missing IDs magic defines
They were a very bad idea to begin with, and translators don't check
these files. We are better of breaking the build so translators actually
notice they messed up
http://cvs.php.net/viewvc.cgi/phpdoc/configure.php?r1=1.64&r2=1.65&diff_format=u
Index: phpdoc/configure.php
diff -u phpdoc/configure.php:1.64 phpdoc/configure.php:1.65
--- phpdoc/configure.php:1.64 Wed Jan 7 20:38:19 2009
+++ phpdoc/configure.php Wed Jan 7 21:22:13 2009
@@ -19,11 +19,11 @@
| Gwynne Raskind <gwynne@php.net> |
+----------------------------------------------------------------------+
- $Id: configure.php,v 1.64 2009/01/07 20:38:19 bjori Exp $
+ $Id: configure.php,v 1.65 2009/01/07 21:22:13 bjori Exp $
*/
error_reporting(E_ALL);
-$cvs_id = '$Id: configure.php,v 1.64 2009/01/07 20:38:19 bjori Exp $';
+$cvs_id = '$Id: configure.php,v 1.65 2009/01/07 21:22:13 bjori Exp $';
echo "configure.php: $cvs_id\n";
@@ -219,7 +219,6 @@
// Settings {{{
$cygwin_php_bat = "{$srcdir}/../phpdoc-tools/php.bat";
$php_bin_names = array('php', 'php5', 'cli/php', 'php.exe',
'php5.exe', 'php-cli.exe', 'php-cgi.exe');
-$nsgmls_bin_names = array('nsgmls', 'onsgmls', 'nsgmls.exe',
'onsgmls.exe');
// }}}
// Reject old PHP installations {{{
@@ -250,10 +249,6 @@
'SEGFAULT_ERROR' => 'yes',
'VERSION_FILES' => 'yes',
'HOWTO' => 'no',
-
- // Junk to make the old scripts (file-entities.php and missing-entities.php) cooperative
- 'NSGMLS' => 'no',
- 'SP_OPTIONS' => 'SP_ENCODING=XML SP_CHARSET_FIXED=YES',
); // }}}
$ac = $acd;
@@ -417,20 +412,12 @@
checkvalue($ac['DETAILED_ERRORMSG']);
-// Do NOT add a commandline setting for this. We only support $ac[ 'NSGMLS' ] to
-// keep missing-entities.php.in working.
-checking("for nsgmls");
-if (!is_windows() && ($nsgmls = abspath(find_file($nsgmls_bin_names))) != '')
- $ac['NSGMLS'] = $nsgmls;
-checkvalue($ac['NSGMLS']);
-
// We shouldn't be globbing for this. autoconf requires you to tell it which files to use, we
should do the same
// Notice how doing it this way results in generating less than half as many files.
$infiles = array(
'manual.xml.in',
'entities/version.ent.in',
'scripts/file-entities.php.in',
- 'scripts/missing-entities.php.in'
);
foreach ($infiles as $in) {
@@ -526,28 +513,6 @@
quietechorun("\"{$ac['PHP']}\" -q
\"{$ac['srcdir']}/scripts/file-entities.php\"{$redir}");
-// just unlink() the two files we know need to be removed. if you update missing-entities.php,
update this
-$missing_stuff = array(
- "entities/missing-entities.ent",
- "entities/missing-ids.xml"
-);
-foreach ($missing_stuff as $relpath) {
- if (file_exists("{$ac['srcdir']}/{$relpath}")) {
- echo "Removing {$ac['srcdir']}/{$relpath}\n";
- if (@unlink("{$ac['srcdir']}/{$relpath}") === FALSE) {
- echo "Failed to remove {$relpath}. Check your permissions.\n";
- errors_are_bad(178);
- }
- }
-}
-// We don't need missing-entities to be run unless we're not rendering English
-if ($ac['LANG'] != 'en') {
- quietechorun("\"{$ac['PHP']}\" -q
\"{$ac['srcdir']}/scripts/missing-entities.php\"{$redir}");
-} else {
- // Stick some empty data in there
- file_put_contents("{$ac['srcdir']}/entities/missing-entities.ent",
'<'.'?xml version="1.0"
encoding="utf-8"?'.">\n");
- file_put_contents("{$ac['srcdir']}/entities/missing-ids.xml",
'<'.'?xml version="1.0"
encoding="utf-8"?'.">\n");
-}
echo "Loading and parsing manual.xml... ";
flush(STDOUT);
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.268&r2=1.269&diff_format=u
Index: phpdoc/manual.xml.in
diff -u phpdoc/manual.xml.in:1.268 phpdoc/manual.xml.in:1.269
--- phpdoc/manual.xml.in:1.268 Wed Jan 7 20:14:41 2009
+++ phpdoc/manual.xml.in Wed Jan 7 21:22:13 2009
@@ -2,7 +2,7 @@
<!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN"
"./docbook/docbook-xml/docbook.dtd" [
-<!-- $Revision: 1.268 $ -->
+<!-- $Revision: 1.269 $ -->
<!-- We use xhtml entities all over the place -->
<!ENTITY % xhtml-lat1 SYSTEM "./entities/ISO/xhtml1-lat1.ent">
<!ENTITY % xhtml-symbol SYSTEM "./entities/ISO/xhtml1-symbol.ent">
@@ -44,12 +44,6 @@
%file.entities;
%build.version;
%frontpage.entities;
-
-<!-- Autogenerated missing entites and IDs to make build work -->
-<!ENTITY % missing-entities SYSTEM "./entities/missing-entities.ent">
-%missing-entities;
-
-<!ENTITY missing-ids SYSTEM "./entities/missing-ids.xml">
]>
<set xmlns="http://docbook.org/ns/docbook"
version="5.0" xml:id="index" xml:lang="@LANG@" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -495,7 +489,6 @@
&appendices.about;
&appendices.license;
&global.function-index;
- &missing-ids;
</book>
@CHMONLY_INCL_BEGIN@
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/file-entities.php.in?r1=1.59&r2=1.60&diff_format=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.59 phpdoc/scripts/file-entities.php.in:1.60
--- phpdoc/scripts/file-entities.php.in:1.59 Wed Jan 7 20:54:12 2009
+++ phpdoc/scripts/file-entities.php.in Wed Jan 7 21:22:13 2009
@@ -17,7 +17,7 @@
| Gabor Hojtsy <goba@php.net> |
+----------------------------------------------------------------------+
- $Id: file-entities.php.in,v 1.59 2009/01/07 20:54:12 bjori Exp $
+ $Id: file-entities.php.in,v 1.60 2009/01/07 21:22:13 bjori Exp $
*/
/**
@@ -79,17 +79,6 @@
entstr("global.function-index", "$out_dir/funcindex.xml") . "\n"
);
-// The missing id file is generated after this pass
-// and due to stupid linux realpath() implementation we need to create an empty
-// file for realpath() to work
-touch("$out_dir/entities/missing-ids.xml");
-fputs(
- $fp,
- "<!-- generated file with missing ids -->\n" .
- entstr("missing-ids", "$out_dir/entities/missing-ids.xml") . "\n"
.
- "<!-- all other files -->\n"
-);
-
// Write out all other entities
$entities = array_unique($entities);
foreach ($entities as $entity) {
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/missing-entities.php.in?r1=1.30&r2=1.31&diff_format=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.30 phpdoc/scripts/missing-entities.php.in:1.31
--- phpdoc/scripts/missing-entities.php.in:1.30 Wed Dec 31 06:40:11 2008
+++ phpdoc/scripts/missing-entities.php.in Wed Jan 7 21:22:13 2009
@@ -1,4 +1,4 @@
-<?php
+<?php // vim: ts=4 sw=4 et tw=78 fdm=marker
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
@@ -17,7 +17,7 @@
| Gabor Hojtsy <goba@php.net> |
+----------------------------------------------------------------------+
- $Id: missing-entities.php.in,v 1.30 2008/12/31 06:40:11 philip Exp $
+ $Id: missing-entities.php.in,v 1.31 2009/01/07 21:22:13 bjori Exp $
*/
set_time_limit(0);