From 02e15ebd0ba7690bd499ab0d29a4f0d631b8a055 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 10 Jul 2012 18:50:19 +0200 Subject: [PATCH] Improve documentation of maintenance scripts. Change-Id: I0e2869970c46f4fd14b792f2978cc1ba9d8550be --- maintenance/dumpUploads.php | 9 ++++++++- maintenance/edit.php | 7 ++++++- maintenance/fetchText.php | 8 +++++++- maintenance/fileOpPerfTest.php | 7 ++++++- maintenance/findHooks.php | 5 +++++ maintenance/fixDoubleRedirects.php | 11 ++++++++--- maintenance/fixExtLinksProtocolRelative.php | 7 +++++++ maintenance/fixSlaveDesync.php | 8 ++++++++ maintenance/fixTimestamps.php | 17 ++++++++++++----- maintenance/fixUserRegistration.php | 6 ++++++ maintenance/formatInstallDoc.php | 7 +++++++ 11 files changed, 80 insertions(+), 12 deletions(-) diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 919bb4df93..b16b0c2929 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -1,6 +1,6 @@ + * Copyright © 2011 Ilmari Karonen * http://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify @@ -27,13 +27,18 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that fixes double redirects. + * + * @ingroup Maintenance + */ class FixDoubleRedirects extends Maintenance { public function __construct() { parent::__construct(); $this->mDescription = "Script to fix double redirects"; $this->addOption( 'async', 'Don\'t fix anything directly, just queue the jobs' ); $this->addOption( 'title', 'Fix only redirects pointing to this page', false, true ); - $this->addOption( 'dry-run', 'Perform a dry run, fix nothing' ); + $this->addOption( 'dry-run', 'Perform a dry run, fix nothing' ); } public function execute() { diff --git a/maintenance/fixExtLinksProtocolRelative.php b/maintenance/fixExtLinksProtocolRelative.php index 0cabe8160e..d247862f5f 100644 --- a/maintenance/fixExtLinksProtocolRelative.php +++ b/maintenance/fixExtLinksProtocolRelative.php @@ -19,11 +19,18 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @ingroup Maintenance */ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that fixes any entriy for protocol-relative URLs + * in the externallinks table. + * + * @ingroup Maintenance + */ class FixExtLinksProtocolRelative extends LoggedUpdateMaintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/fixSlaveDesync.php b/maintenance/fixSlaveDesync.php index 7731d3e3b7..de6f652137 100644 --- a/maintenance/fixSlaveDesync.php +++ b/maintenance/fixSlaveDesync.php @@ -1,5 +1,7 @@