und -> and ;)
[mediawiki.git] / maintenance / rebuildInterwiki.php
blob9a3cfd98bb01ed788386b3f325199c729e41034f
1 <?php
2 /**
3 * Rebuild interwiki table using the file on meta and the language list
4 * Wikimedia specific!
6 * @file
7 * @todo document
8 * @ingroup Maintenance
9 */
11 /** */
12 $oldCwd = getcwd();
14 $optionsWithArgs = array( "d" );
15 include_once( "commandLine.inc" );
16 include_once( "rebuildInterwiki.inc" );
17 chdir( $oldCwd );
19 # Output
20 if ( isset( $options['d'] ) ) {
21 $destDir = $options['d'];
22 } else {
23 $destDir = '/home/wikipedia/conf/interwiki/sql';
26 echo "Making new interwiki SQL files in $destDir\n";
27 makeInterwikiSQL( $destDir );