Nobody wants to touch this....
[mediawiki.git] / maintenance / deleteOldRevisions.php
blob8454479b1989a39367cb823cafd974a267d8493b
1 <?php
3 /**
4 * Delete old (non-current) revisions from the database
6 * @addtogroup Maintenance
7 * @author Rob Church <robchur@gmail.com>
8 */
10 $options = array( 'delete', 'help' );
11 require_once( 'commandLine.inc' );
12 require_once( 'deleteOldRevisions.inc' );
14 echo( "Delete Old Revisions\n\n" );
16 if( @$options['help'] ) {
17 ShowUsage();
18 } else {
19 DeleteOldRevisions( @$options['delete'], $args );
22 function ShowUsage() {
23 echo( "Deletes non-current revisions from the database.\n\n" );
24 echo( "Usage: php deleteOldRevisions.php [--delete|--help] [<page_id> ...]\n\n" );
25 echo( "delete : Performs the deletion\n" );
26 echo( " help : Show this usage information\n" );