Index: trunk/tools/mwmultiversion/scripts/mwscript |
— | — | @@ -1,4 +1,9 @@ |
2 | 2 | #!/bin/sh |
3 | 3 | # Shell wrapper for the local version of MWScript.php. |
4 | 4 | # 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
|