Index: trunk/tools/mwmultiversion/multiversion/checkoutMediaWiki |
— | — | @@ -36,6 +36,8 @@ |
37 | 37 | die( "Usage: checkoutMediaWiki X.XXwmfX php-X.XX\n" ); |
38 | 38 | } |
39 | 39 | |
| 40 | + echo "Creating new MediaWiki install at $commonHomeDir/$dstVersion...\n\n"; |
| 41 | + |
40 | 42 | # The url to SVN to checkout from |
41 | 43 | $source = "svn+ssh://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/$svnVersion"; |
42 | 44 | |
— | — | @@ -157,7 +159,17 @@ |
158 | 160 | print "Symlink file already exists: $path\n"; |
159 | 161 | } |
160 | 162 | |
161 | | - print "MediaWiki $dstVersionNum, from $svnVersion, successfully checked out.\n"; |
| 163 | + # Create l10n cache dir |
| 164 | + $l10nDir = "$commonHomeDir/php-$dstVersionNum/cache/l10n"; |
| 165 | + if ( !file_exists( $l10nDir ) ) { |
| 166 | + if ( mkdir( $l10nDir, 0775 ) ) { |
| 167 | + print "Created php-$dstVersionNum/cache/l10n directory.\n"; |
| 168 | + } |
| 169 | + } else { |
| 170 | + print "Directory already exists: $l10nDir\n"; |
| 171 | + } |
| 172 | + |
| 173 | + print "\nMediaWiki $dstVersionNum, from $svnVersion, successfully checked out.\n"; |
162 | 174 | } |
163 | 175 | |
164 | 176 | checkoutMediaWiki(); |