summaryrefslogtreecommitdiff
path: root/maintenance/rebuildInterwiki.php
blob: 9a3cfd98bb01ed788386b3f325199c729e41034f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
 * Rebuild interwiki table using the file on meta and the language list
 * Wikimedia specific!
 *
 * @file
 * @todo document
 * @ingroup Maintenance
 */

/** */
$oldCwd = getcwd();

$optionsWithArgs = array( "d" );
include_once( "commandLine.inc" );
include_once( "rebuildInterwiki.inc" );
chdir( $oldCwd );

# Output
if ( isset( $options['d'] ) ) {
	$destDir = $options['d'];
} else {
	$destDir = '/home/wikipedia/conf/interwiki/sql';
}

echo "Making new interwiki SQL files in $destDir\n";
makeInterwikiSQL( $destDir );