svn: /phpdoc/doc-base/trunk/ configure.php scripts/file-entities.php.in

From: Date: Wed, 27 Apr 2011 15:43:49 +0000
Subject: svn: /phpdoc/doc-base/trunk/ configure.php scripts/file-entities.php.in
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8024@lists.php.net to get a copy of this message
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");

« previous php.doc.cvs (#8024) next »