* (bug 21503) There's now a "reason" field when creating account for other users
[lhc/web/wiklou.git] / maintenance / rebuildInterwiki.php
1 <?php
2 /**
3 * Rebuild interwiki table using the file on meta and the language list
4 * Wikimedia specific!
5 *
6 * @file
7 * @todo document
8 * @ingroup Maintenance
9 * @ingroup Wikimedia
10 */
11
12 /** */
13 $oldCwd = getcwd();
14
15 $optionsWithArgs = array( "d" );
16 require_once( dirname( __FILE__ ) . '/commandLine.inc' );
17 require( "rebuildInterwiki.inc" );
18 chdir( $oldCwd );
19
20 # Output
21 if ( isset( $options['d'] ) ) {
22 $destDir = $options['d'];
23 } else {
24 $destDir = '/home/wikipedia/conf/interwiki/sql';
25 }
26
27 echo "Making new interwiki SQL files in $destDir\n";
28 makeInterwikiSQL( $destDir );
29