From 691e79c40581fe3882e962e335937173ba78661d Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 22 Feb 2012 02:09:05 +0000 Subject: [PATCH] Output directory option, to allow messages to be put directly into /h/w/c --- maintenance/rebuildLocalisationCache.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index ee3be9d16e..41ffa28595 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -36,6 +36,8 @@ class RebuildLocalisationCache extends Maintenance { $this->mDescription = "Rebuild the localisation cache"; $this->addOption( 'force', 'Rebuild all files, even ones not out of date' ); $this->addOption( 'threads', 'Fork more than one thread', false, true ); + $this->addOption( 'outdir', 'Override the output directory (normally $wgCacheDirectory)', + false, true ); } public function memoryLimit() { @@ -65,6 +67,9 @@ class RebuildLocalisationCache extends Maintenance { if ( $force ) { $conf['forceRecache'] = true; } + if ( $this->hasOption( 'outdir' ) ) { + $conf['storeDirectory'] = $this->getOption( 'outdir' ); + } $lc = new LocalisationCache_BulkLoad( $conf ); $codes = array_keys( Language::getLanguageNames( true ) ); -- 2.20.1