fix typo in message name.
[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 * @todo document
6 * @addtogroup Maintenance
7 */
8
9 /** */
10 $oldCwd = getcwd();
11
12 $optionsWithArgs = array( "d" );
13 include_once( "commandLine.inc" );
14 include_once( "rebuildInterwiki.inc" );
15 chdir( $oldCwd );
16
17 # Output
18 if ( isset( $options['d'] ) ) {
19 $destDir = $options['d'];
20 } else {
21 $destDir = '/home/wikipedia/conf/interwiki/sql';
22 }
23
24 echo "Making new interwiki SQL files in $destDir\n";
25 makeInterwikiSQL( $destDir );
26