r92649 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92648‎ | r92649 | r92650 >
Date:18:00, 20 July 2011
Author:aaron
Status:ok (Comments)
Tags:
Comment:
Initial checkout of wmf scripts:
* l10 update script from /home/wikipedia/bin
* scap-2 from /usr/bin/ (also in SVN at /debs/wikimedia-task-appserver/)
Modified paths:
  • /trunk/tools/mwmultiversion/scripts/l10nupdate (added) (history)
  • /trunk/tools/mwmultiversion/scripts/mwscript (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/scripts/mwscript
@@ -1,4 +1,9 @@
22 #!/bin/sh
33 # Shell wrapper for the local version of MWScript.php.
44 # This script belongs in /usr/bin/ and should be in PATH.
5 -php /usr/local/apache/common/MWScript.php "$@"
 5+if php /usr/local/apache/common/MWScript.php "$@"
 6+then
 7+ exit 0
 8+else
 9+ exit 1
 10+fi
Index: trunk/tools/mwmultiversion/scripts/l10nupdate
@@ -0,0 +1,21 @@
 2+#!/bin/sh
 3+umask 0002
 4+echo "Starting l10nupdate at `date`."
 5+if svn up --ignore-externals /home/wikipedia/l10n/trunk/phase3 &&
 6+ svn up --ignore-externals /home/wikipedia/l10n/trunk/extensions &&
 7+ php /home/wikipedia/common/php/extensions/LocalisationUpdate/update.php \
 8+ --wiki=aawiki \
 9+ --outdir=/home/wikipedia/common/php/cache/l10n \
 10+ --all \
 11+ --quiet
 12+then
 13+ echo "Completed. Syncing to Apaches"
 14+ /home/wikipedia/bin/sync-l10nupdate
 15+ echo "Clearing message blobs"
 16+ php /home/wikipedia/common/php/maintenance/wmf/clearMessageBlobs.php
 17+ echo "All done"
 18+else
 19+ /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"; echo "FAILED";
 20+fi
 21+## Apache clients should sync updates locally every X hours or at scap time
 22+# Not needed anymore as of 3/20/2011 --Roan

Follow-up revisions

RevisionCommit summaryAuthorDate
r92650Missing file from r92649aaron18:02, 20 July 2011

Comments

#Comment by Aaron Schulz (talk | contribs)   18:03, 20 July 2011

Also tweaks mwscript return status handling.

Status & tagging log