r94193 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94192‎ | r94193 | r94194 >
Date:19:45, 10 August 2011
Author:aaron
Status:ok
Tags:
Comment:
* Path fixes for bin dir
* Removed old comment and added some
Modified paths:
  • /trunk/tools/mwmultiversion/scripts/l10nupdate (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/scripts/l10nupdate
@@ -1,46 +1,48 @@
22 #!/bin/sh
33 # This script belongs in /home/wikipedia/bin/.
44 PATH=/bin:/usr/bin:/sbin:/usr/sbin:
 5+BINDIR=/home/wikipedia/bin
56
67 umask 0002
78
 9+# SVN up i18 messages to /trunk HEAD
810 echo "Starting l10nupdate at `date`."
911 if svn up --ignore-externals /home/wikipedia/l10n/trunk/phase3 &&
1012 svn up --ignore-externals /home/wikipedia/l10n/trunk/extensions
1113 then
1214 echo "SVN update completed."
1315 else
14 - /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
 16+ $BINDIR/dologmsg "!log LocalisationUpdate failed"
1517 echo "FAILED"
1618 exit 1
1719 fi
1820
19 -mwVerDbSets=(`mwversionsinuse --extended --withdb`)
 21+# Get all MW message cache versions (and a wiki DB name for each)
 22+mwVerDbSets=(`$BINDIR/mwversionsinuse --extended --withdb`)
2023 if [ -z "$mwVerDbSets" ]; then
21 - /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
 24+ $BINDIR/dologmsg "!log LocalisationUpdate failed"
2225 echo "FAILED"
2326 exit 1
2427 fi
2528
 29+# Update l10n cache and clear the message cache for these versions
2630 for i in "${mwVerDbSets[@]}"
2731 do
2832 mwVerNum=${i%=*}
2933 mwDbName=${i#*=}
30 - if mwscript extensions/LocalisationUpdate/update.php \
 34+ if $BINDIR/mwscript extensions/LocalisationUpdate/update.php \
3135 --wiki="$mwDbName" \
3236 --outdir=/home/wikipedia/common/php-"$mwVerNum"/cache/l10n \
3337 --all \
3438 --quiet
3539 then
3640 echo "Completed. Syncing to Apaches"
37 - /home/wikipedia/bin/sync-l10nupdate "$mwVerNum"
 41+ $BINDIR/sync-l10nupdate "$mwVerNum"
3842 echo "Clearing message blobs"
39 - mwscript maintenance/wmf/clearMessageBlobs.php --wiki="$mwDbName"
 43+ $BINDIR/mwscript maintenance/wmf/clearMessageBlobs.php --wiki="$mwDbName"
4044 echo "All done"
4145 else
42 - /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
 46+ $BINDIR/dologmsg "!log LocalisationUpdate failed"
4347 echo "FAILED"
4448 fi
4549 done
46 -## Apache clients should sync updates locally every X hours or at scap time
47 -# Not needed anymore as of 3/20/2011 --Roan

Status & tagging log