Localisation updates for core special pages aliases from translatewiki.net
[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 */
10
11 /** */
12 $oldCwd = getcwd();
13
14 $optionsWithArgs = array( "d" );
15 require( "commandLine.inc" );
16 require( "rebuildInterwiki.inc" );
17 chdir( $oldCwd );
18
19 # Output
20 if ( isset( $options['d'] ) ) {
21 $destDir = $options['d'];
22 } else {
23 $destDir = '/home/wikipedia/conf/interwiki/sql';
24 }
25
26 echo "Making new interwiki SQL files in $destDir\n";
27 makeInterwikiSQL( $destDir );
28