Index: trunk/tools/mwmultiversion/scripts/sync-l10nupdate |
— | — | @@ -1,6 +1,5 @@ |
2 | 2 | #!/bin/bash |
3 | 3 | # This script belongs in /home/wikipedia/bin/. |
4 | | -PATH=/bin:/usr/bin:/sbin:/usr/sbin: |
5 | 4 | MWVER="$1" |
6 | 5 | |
7 | 6 | if [ -z "$MWVER" ]; then |
Index: trunk/tools/mwmultiversion/scripts/l10nupdate |
— | — | @@ -1,7 +1,7 @@ |
2 | | -#!/bin/sh |
| 2 | +#!/bin/bash |
3 | 3 | # This script belongs in /home/wikipedia/bin/. |
4 | | -PATH=/bin:/usr/bin:/sbin:/usr/sbin: |
5 | 4 | BINDIR=/home/wikipedia/bin |
| 5 | +MWMULTIDIR=/home/wikipedia/common/multiversion |
6 | 6 | |
7 | 7 | umask 0002 |
8 | 8 | |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | fi |
20 | 20 | |
21 | 21 | # Get all MW message cache versions (and a wiki DB name for each) |
22 | | -mwVerDbSets=(`$BINDIR/mwversionsinuse --extended --withdb`) |
| 22 | +mwVerDbSets=`$BINDIR/mwversionsinuse --extended --withdb` |
23 | 23 | if [ -z "$mwVerDbSets" ]; then |
24 | 24 | $BINDIR/dologmsg "!log LocalisationUpdate failed" |
25 | 25 | echo "FAILED" |
— | — | @@ -30,7 +30,8 @@ |
31 | 31 | do |
32 | 32 | mwVerNum=${i%=*} |
33 | 33 | mwDbName=${i#*=} |
34 | | - if $BINDIR/mwscript extensions/LocalisationUpdate/update.php \ |
| 34 | + echo "Running updates for $mwVerNum (on $mwDbName)" |
| 35 | + if php $MWMULTIDIR/MWScript.php extensions/LocalisationUpdate/update.php \ |
35 | 36 | --wiki="$mwDbName" \ |
36 | 37 | --outdir=/home/wikipedia/common/php-"$mwVerNum"/cache/l10n \ |
37 | 38 | --all \ |
— | — | @@ -39,10 +40,11 @@ |
40 | 41 | echo "Completed. Syncing to Apaches" |
41 | 42 | $BINDIR/sync-l10nupdate "$mwVerNum" |
42 | 43 | echo "Clearing message blobs" |
43 | | - $BINDIR/mwscript maintenance/wmf/clearMessageBlobs.php --wiki="$mwDbName" |
| 44 | + php $MWMULTIDIR/MWScript.php maintenance/wmf/clearMessageBlobs.php --wiki="$mwDbName" |
| 45 | + $BINDIR/dologmsg "!log LocalisationUpdate completed ($mwVerNum) at `date`"; |
44 | 46 | echo "All done" |
45 | 47 | else |
46 | | - $BINDIR/dologmsg "!log LocalisationUpdate failed" |
| 48 | + $BINDIR/dologmsg "!log LocalisationUpdate failed ($mwVerNum)" |
47 | 49 | echo "FAILED" |
48 | 50 | fi |
49 | 51 | done |