Index: trunk/phase3/maintenance/scapToWikimedia.php |
— | — | @@ -0,0 +1,13 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +require_once( dirname( __FILE__ ) . '/commandLine.inc'); |
| 5 | + |
| 6 | +$url = 'http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&format=php'; |
| 7 | +$data = @unserialize( Http::get( $url ) ); |
| 8 | +$rev = @$data['query']['general']['rev']; |
| 9 | +if ( !$rev ) |
| 10 | + die( "Unable to fetch latest SVN revision from {$url}\n" ); |
| 11 | + |
| 12 | +print "Updating to revision {$rev}\n"; |
| 13 | +chdir( dirname( __FILE__ ) . '/..' ); |
| 14 | +system( "svn up -r {$rev}" ); |
Property changes on: trunk/phase3/maintenance/scapToWikimedia.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 15 | + native |