[web-doc] master: Ignore timezones.xml.

From: Date: Tue, 16 Nov 2021 18:57:26 +0000
Subject: [web-doc] master: Ignore timezones.xml.
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2493@lists.php.net to get a copy of this message
Author: Sergey Panteleev (saundefined) Committer: Nilgün Belma Bugüner (nilgun) Date: 2021-11-16T21:57:53+03:00 Commit: https://github.com/php/web-doc/commit/ee52c04321df0872a6a989f0b97fbee723f8e224 Raw diff: https://github.com/php/web-doc/commit/ee52c04321df0872a6a989f0b97fbee723f8e224.diff Ignore timezones.xml. Let's crown Russian translation. Closes GH-24 Changed paths: M scripts/rev.php Diff: diff --git a/scripts/rev.php b/scripts/rev.php index e8a8b57..4a685af 100644 --- a/scripts/rev.php +++ b/scripts/rev.php @@ -359,13 +359,19 @@ function populateFileTreeRecurse( $lang , $path , & $output ) 'chmonly', ]; + $ignoredFullPaths = [ + 'appendices/reserved.constants.xml', + 'appendices/extensions.xml', + 'reference/datetime/timezones.xml', + ]; + if( in_array($trimPath, $ignoredDirectories, true) || in_array($filename, $ignoredFileNames, true) || (strpos($filename, 'entities.') === 0) || !in_array(substr($filename, -3), ['xml','ent'], true) || (substr($filename, -13) === 'PHPEditBackup') - || ($trimPath === 'appendices' && (in_array($filename, ['reserved.constants.xml', 'extensions.xml'], true))) + || (in_array($trimPath . '/' .$filename, $ignoredFullPaths, true)) ) continue; $file = new FileStatusInfo;

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