[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/doc-base/trunk/_configure.php_scripts/file-entities.php.in?=
From: Hannes_Magnusson <bjori () php ! net>
Date: 2011-04-27 15:43:49
Message-ID: svn-bjori-1303919029-310568-1730161645 () svn ! php ! net
[Download RAW message or body]
bjori Wed, 27 Apr 2011 15:43:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310568
Log:
Only generate the file entities for the files we are interested in
# This shaves additional 3 seconds from partial runs :)
Changed paths:
U phpdoc/doc-base/trunk/configure.php
U phpdoc/doc-base/trunk/scripts/file-entities.php.in
Modified: phpdoc/doc-base/trunk/configure.php
===================================================================
--- phpdoc/doc-base/trunk/configure.php 2011-04-27 15:15:37 UTC (rev 310567)
+++ phpdoc/doc-base/trunk/configure.php 2011-04-27 15:43:49 UTC (rev 310568)
@@ -259,6 +259,7 @@
'SRCDIR' => $srcdir,
'BASEDIR' => $basedir,
'ROOTDIR' => $rootdir,
+ 'ONLYDIR' => '',
'PHP' => '',
'CHMENABLED' => 'no',
'CHMONLY_INCL_BEGIN' => '<!--',
@@ -505,7 +506,11 @@
checking('whether to optimize out the DTD (performance gain, but segfaults)');
checkvalue($ac['SEGFAULT_SPEED']);
+if ($ac["GENERATE"] != "no") {
+ $ac["ONLYDIR"] = dirname(realpath($ac["GENERATE"]));
+}
+
// 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(
Modified: phpdoc/doc-base/trunk/scripts/file-entities.php.in
===================================================================
--- phpdoc/doc-base/trunk/scripts/file-entities.php.in 2011-04-27 15:15:37 UTC (rev \
310567)
+++ phpdoc/doc-base/trunk/scripts/file-entities.php.in 2011-04-27 15:43:49 UTC (rev \
310568) @@ -53,6 +53,7 @@
$src_dir = ($not_windows || !strcasecmp('CYGWIN',php_uname()))? '@SRCDIR@' : \
abs_path(strip_cygdrive('@SRCDIR@')); $base_dir = ($not_windows || \
!strcasecmp('CYGWIN',php_uname()))? '@BASEDIR@' : \
abs_path(strip_cygdrive('@BASEDIR@')); $root_dir = ($not_windows || \
!strcasecmp('CYGWIN',php_uname()))? '@ROOTDIR@' : \
abs_path(strip_cygdrive('@ROOTDIR@')); +$only_dir = ($not_windows || \
!strcasecmp('CYGWIN',php_uname()))? '@ONLYDIR@' : \
abs_path(strip_cygdrive('@ONLYDIR@'));
// The language encoding to use
$encoding = '@ENCODING@';
@@ -62,7 +63,7 @@
// Put all the file entities into $entities
$entities = array();
-file_entities("$root_dir/en", "$root_dir/@LANGDIR@", "$root_dir/en", $entities);
+file_entities($only_dir ?: "$root_dir/en", "$root_dir/@LANGDIR@", "$root_dir/en", \
$entities);
// Open file for appending and write out all entitities
$fp = fopen("$base_dir/entities/file-entities.ent", "w");
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic