Remove cruft from earlier testing
[mediawiki.git] / maintenance / rebuildInterwiki.php
blob08968421dbfe145b14653e8d6c49a3992a5fdc4f
1 <?php
2 /**
3 * Rebuild interwiki table using the file on meta and the language list
4 * Wikimedia specific!
5 * @todo document
6 * @addtogroup Maintenance
7 */
9 /** */
10 $oldCwd = getcwd();
12 $optionsWithArgs = array( "d" );
13 include_once( "commandLine.inc" );
14 include_once( "rebuildInterwiki.inc" );
15 chdir( $oldCwd );
17 # Output
18 if ( isset( $options['d'] ) ) {
19 $destDir = $options['d'];
20 } else {
21 $destDir = '/home/wikipedia/conf/interwiki/sql';
24 echo "Making new interwiki SQL files in $destDir\n";
25 makeInterwikiSQL( $destDir );