38$IP = getenv(
'MW_INSTALL_PATH' );
41 $IP = dirname( __DIR__ );
43 putenv(
"MW_INSTALL_PATH=$IP" );
46require_once
"$IP/maintenance/Maintenance.php";
48if ( !isset(
$argv[1] ) ) {
49 fwrite( STDERR,
"This script requires a maintainance script as an argument.\n"
50 .
"Usage: runScript.php extensions/Wikibase/lib/maintenance/dispatchChanges\n" );
60 fwrite( STDERR,
"The MediaWiki script file \"{$scriptFilename}\" does not exist.\n" );
if(!isset( $argv[1])) $scriptFilename