Index: trunk/tools/mwmultiversion/multiversion/populateWikiversionCDB.php |
— | — | @@ -16,6 +16,7 @@ |
17 | 17 | */ |
18 | 18 | function populateWikiversionsCDB() { |
19 | 19 | global $argv; |
| 20 | + $common = '/home/wikipedia/common'; |
20 | 21 | |
21 | 22 | $argsValid = false; |
22 | 23 | if ( count( $argv ) >= 2 ) { |
— | — | @@ -29,7 +30,7 @@ |
30 | 31 | die( "Usage: populateWikiVersionsCDB.php php-X.XX\n" ); |
31 | 32 | } |
32 | 33 | |
33 | | - $path = '/home/wikipedia/common/all.dblist'; |
| 34 | + $path = "$common/all.dblist"; |
34 | 35 | $dbList = explode( "\n", file_get_contents( $path ) ); |
35 | 36 | $dbList = array_filter( $dbList ); // remove whitespace entry |
36 | 37 | if ( !count( $dbList ) ) { |
— | — | @@ -41,8 +42,18 @@ |
42 | 43 | $wikiVersionList .= "$dbName $version\n"; |
43 | 44 | } |
44 | 45 | |
45 | | - $path = '/home/wikipedia/common/wikiversions.cdb'; |
| 46 | + $path = "$common/wikiversions.dat"; |
46 | 47 | if ( !file_put_contents( $path, $wikiVersionList ) ) { |
| 48 | + die( "Unable to write to wikiversions.dat.\n" ); |
| 49 | + } |
| 50 | + |
| 51 | + $ret = 1; // failed by default? |
| 52 | + passthru( sprintf( |
| 53 | + "$common/multiversion/cdbmake-12.sh %s %s < $common/wikiversions.dat", |
| 54 | + "$common/wikiversions.cdb", |
| 55 | + "$common/wikiversions.dat.tmp" |
| 56 | + ) ); |
| 57 | + if ( $ret != 0 ) { |
47 | 58 | die( "Unable to write to wikiversions.cdb.\n" ); |
48 | 59 | } |
49 | 60 | } |
Index: trunk/tools/mwmultiversion/scripts/wikiversions.list.sample |
— | — | @@ -1,3 +0,0 @@ |
2 | | -trunkwiki php-trunk |
3 | | -enwiki php-1.17 |
4 | | -testwiki php-1.18 |
Index: trunk/tools/mwmultiversion/scripts/cdbmake-12.sh |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +#!/bin/sh |
| 3 | +# This File is from the following cdb package |
| 4 | +# http://cr.yp.to/cdb.html |
| 5 | +# Version: cdb-0.75 (2000.02.19, "beta") |
| 6 | +# Usage: cdbmake-12.sh wikiversions.cdb wikiversions.tmp < wikiversions.dat |
| 7 | +# See: wikiversions.dat.sample |
| 8 | +awk ' |
| 9 | + /^[^#]/ { |
| 10 | + print "+" length($1) "," length($2) ":" $1 "->" $2 |
| 11 | + } |
| 12 | + END { |
| 13 | + print "" |
| 14 | + } |
| 15 | +' | cdbmake "$@" |
Property changes on: trunk/tools/mwmultiversion/scripts/cdbmake-12.sh |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Added: svn:executable |
2 | 17 | + * |
Index: trunk/tools/mwmultiversion/scripts/wikiversions.dat.sample |
— | — | @@ -0,0 +1,3 @@ |
| 2 | +trunkwiki php-trunk |
| 3 | +enwiki php-1.17 |
| 4 | +testwiki php-1.18 |
Property changes on: trunk/tools/mwmultiversion/scripts/wikiversions.dat.sample |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 5 | + native |
Index: trunk/tools/mwmultiversion/wmf-config/CommonSettings.php |
— | — | @@ -1188,7 +1188,7 @@ |
1189 | 1189 | |
1190 | 1190 | // Newer entries |
1191 | 1191 | if( $wgDBname == 'zhwiki' ) $wgCacheEpoch = '20060528093500'; # parser bug? |
1192 | | -if( $wgDBname == 'lawikibooks' ) $wgCacheEpoch = '20060610090000'; # sidebar bug |
| 1192 | +if( $wgDBname == 'lawikibooks' ) $wgCacheEpoch = '20060610090000'; # sidebar bug |
1193 | 1193 | if ( $wmgHTTPSExperiment ) $wgCacheEpoch = '20110718202400'; |
1194 | 1194 | |
1195 | 1195 | #$wgThumbnailEpoch = '20060227114700'; # various rsvg and imagemagick fixes |
— | — | @@ -2096,8 +2096,8 @@ |
2097 | 2097 | |
2098 | 2098 | $wgArticleFeedbackTracking = array( |
2099 | 2099 | 'buckets' => array( |
2100 | | - 'track' => 0.386, |
2101 | | - 'ignore' => 99.614, |
| 2100 | + 'track' => 0.318, |
| 2101 | + 'ignore' => 99.682, |
2102 | 2102 | //'track'=>0, 'ignore' => 100 |
2103 | 2103 | ), |
2104 | 2104 | 'version' => 8, |