From c5db696ef4f19b6bdabb7d519dc949fbeceeedc2 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 3 Jan 2009 16:20:05 +0000 Subject: [PATCH] (bug 16376) Mention in deleteBatch.php and moveBatch.php maintenance scripts that STDIN can be used for page list --- RELEASE-NOTES | 2 ++ maintenance/deleteBatch.php | 5 +++-- maintenance/moveBatch.php | 7 ++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b5ceb1d162..db905326f9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -464,6 +464,8 @@ The following extensions are migrated into MediaWiki 1.14: * (bug 16786) Restored "redundant" links recently removed from Classic sidebar * (bug 16850) $wgActionPaths can have query strings now, previously, this broke local URLs +* (bug 16376) Mention in deleteBatch.php and moveBatch.php maintenance scripts + that STDIN can be used for page list === API changes in 1.14 === diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index 092314e530..5aeea7816b 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -2,9 +2,10 @@ /** * Deletes a batch of pages - * Usage: php deleteBatch.php [-u ] [-r ] [-i ] + * Usage: php deleteBatch.php [-u ] [-r ] [-i ] [listfile] * where - * is a file where each line contains the title of a page to be deleted. + * [listfile] is a file where each line contains the title of a page to be + * deleted, standard input is used if listfile is not given. * is the username * is the delete reason * is the number of seconds to sleep for after each delete diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index 52e6ddc62d..427e5d091d 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -7,10 +7,11 @@ * @ingroup Maintenance * @author Tim Starling * - * USAGE: php moveBatch.php [-u ] [-r ] [-i ] + * USAGE: php moveBatch.php [-u ] [-r ] [-i ] [listfile] * - * - file with two titles per line, separated with pipe characters; - * the first title is the source, the second is the destination + * [listfile] - file with two titles per line, separated with pipe characters; + * the first title is the source, the second is the destination. + * Standard input is used if listfile is not given. * - username to perform moves as * - reason to be given for moves * - number of seconds to sleep after each move -- 2.20.1