r92665 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92664‎ | r92665 | r92666 >
Date:19:02, 20 July 2011
Author:aaron
Status:ok
Tags:
Comment:
Added svn:eol-style=native
Modified paths:
  • /trunk/tools/mwmultiversion/scripts/l10nupdate (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/mwversionsinuse (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/scap-2 (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/sync-l10nupdate (modified) (history)

Diff [purge]

Property changes on: trunk/tools/mwmultiversion/scripts/mwversionsinuse
___________________________________________________________________
Added: svn:eol-style
11 + native
Index: trunk/tools/mwmultiversion/scripts/scap-2
@@ -1,46 +1,46 @@
2 -#!/bin/bash
3 -
4 -PATH=/bin:/usr/bin:/sbin:/usr/sbin:
5 -
6 -echo -n Copying to `hostname -s`...
7 -if rsync -a --delete --exclude=**/.svn/lock --no-perms \
8 - 10.0.5.8::common/ /usr/local/apache/common-local
9 -then
10 - echo "ok"
11 -else
12 - echo "failed"
13 - exit 1
14 -fi
15 -
16 -mwVersionNums=(`mwversionsinuse`)
17 -if [ -z "$mwVersionNums" ]; then
18 - echo "Unable to read wikiversions.db or it is empty"
19 - exit 1
20 -fi
21 -
22 -for mwVerNum in "${mwVersionNums[@]}"
23 -do
24 - echo "MediaWiki $mwVerNum:"
25 - echo -n "Compiling texvc..."
26 - builddir=`mktemp -dt texvc-build.XXXXXXXXXX`
27 - if [ -z "$builddir" ]; then
28 - echo "Unable to create temporary directory"
29 - exit 1
30 - fi
31 -
32 - rsync -r --exclude=.svn/ /usr/local/apache/common-local/php-"$mwVerNum"/math/ "$builddir"
33 - cd "$builddir"
34 - if make -f Makefile texvc >/dev/null 2>/dev/null; then
35 - echo "ok"
36 - install -d /usr/local/apache/uncommon/"$mwVerNum"/bin
37 - install -m 755 "$builddir"/texvc /usr/local/apache/uncommon/"$mwVerNum"/bin
38 - else
39 - echo "failed"
40 - exit 1
41 - fi
42 - rm -r "$builddir"
43 - cd /
44 -done
45 -
46 -#echo -n "Restarting apache... "
47 -#/usr/bin/apache-sanity-check && ( sudo /usr/sbin/apache2ctl stop; sudo killall -9 apache2;sleep 3; sudo /usr/sbin/apache2ctl start )
 2+#!/bin/bash
 3+
 4+PATH=/bin:/usr/bin:/sbin:/usr/sbin:
 5+
 6+echo -n Copying to `hostname -s`...
 7+if rsync -a --delete --exclude=**/.svn/lock --no-perms \
 8+ 10.0.5.8::common/ /usr/local/apache/common-local
 9+then
 10+ echo "ok"
 11+else
 12+ echo "failed"
 13+ exit 1
 14+fi
 15+
 16+mwVersionNums=(`mwversionsinuse`)
 17+if [ -z "$mwVersionNums" ]; then
 18+ echo "Unable to read wikiversions.db or it is empty"
 19+ exit 1
 20+fi
 21+
 22+for mwVerNum in "${mwVersionNums[@]}"
 23+do
 24+ echo "MediaWiki $mwVerNum:"
 25+ echo -n "Compiling texvc..."
 26+ builddir=`mktemp -dt texvc-build.XXXXXXXXXX`
 27+ if [ -z "$builddir" ]; then
 28+ echo "Unable to create temporary directory"
 29+ exit 1
 30+ fi
 31+
 32+ rsync -r --exclude=.svn/ /usr/local/apache/common-local/php-"$mwVerNum"/math/ "$builddir"
 33+ cd "$builddir"
 34+ if make -f Makefile texvc >/dev/null 2>/dev/null; then
 35+ echo "ok"
 36+ install -d /usr/local/apache/uncommon/"$mwVerNum"/bin
 37+ install -m 755 "$builddir"/texvc /usr/local/apache/uncommon/"$mwVerNum"/bin
 38+ else
 39+ echo "failed"
 40+ exit 1
 41+ fi
 42+ rm -r "$builddir"
 43+ cd /
 44+done
 45+
 46+#echo -n "Restarting apache... "
 47+#/usr/bin/apache-sanity-check && ( sudo /usr/sbin/apache2ctl stop; sudo killall -9 apache2;sleep 3; sudo /usr/sbin/apache2ctl start )
Property changes on: trunk/tools/mwmultiversion/scripts/scap-2
___________________________________________________________________
Added: svn:eol-style
4848 + native
Index: trunk/tools/mwmultiversion/scripts/sync-l10nupdate
@@ -1,14 +1,14 @@
2 -#!/bin/bash
3 -# This script belongs in /home/wikipedia/bin/.
4 -PATH=/bin:/usr/bin:/sbin:/usr/sbin:
5 -
6 -mwVersionNums=(`mwversionsinuse`)
7 -
8 -for mwVerNum in "${mwVersionNums[@]}"
9 -do
10 - echo "Synchronizing /home/wikipedia/common/php-$mwVerNum/cache/l10n to /usr/local/apache/common-local/php-$mwVerNum/cache/l10n..."
11 - echo "mediawiki-installation:"
12 -
13 - ddsh -cM -g mediawiki-installation \
14 - 'sudo -u mwdeploy rsync -a 10.0.5.8::common/php-$mwVerNum/cache/l10n/ /usr/local/apache/common-local/php-$mwVerNum/cache/l10n'
15 -done
 2+#!/bin/bash
 3+# This script belongs in /home/wikipedia/bin/.
 4+PATH=/bin:/usr/bin:/sbin:/usr/sbin:
 5+
 6+mwVersionNums=(`mwversionsinuse`)
 7+
 8+for mwVerNum in "${mwVersionNums[@]}"
 9+do
 10+ echo "Synchronizing /home/wikipedia/common/php-$mwVerNum/cache/l10n to /usr/local/apache/common-local/php-$mwVerNum/cache/l10n..."
 11+ echo "mediawiki-installation:"
 12+
 13+ ddsh -cM -g mediawiki-installation \
 14+ 'sudo -u mwdeploy rsync -a 10.0.5.8::common/php-$mwVerNum/cache/l10n/ /usr/local/apache/common-local/php-$mwVerNum/cache/l10n'
 15+done
Property changes on: trunk/tools/mwmultiversion/scripts/sync-l10nupdate
___________________________________________________________________
Added: svn:eol-style
1616 + native
Index: trunk/tools/mwmultiversion/scripts/l10nupdate
@@ -1,44 +1,44 @@
2 -#!/bin/sh
3 -# This script belongs in /home/wikipedia/bin/.
4 -PATH=/bin:/usr/bin:/sbin:/usr/sbin:
5 -
6 -umask 0002
7 -
8 -echo "Starting l10nupdate at `date`."
9 -if svn up --ignore-externals /home/wikipedia/l10n/trunk/phase3 &&
10 - svn up --ignore-externals /home/wikipedia/l10n/trunk/extensions
11 -then
12 - echo "SVN update completed."
13 -else
14 - /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
15 - echo "FAILED"
16 - exit 1;
17 -fi
18 -
19 -mwDbNames=(`mwversionsinuse --dbonly`)
20 -if [ -z "$mwDbNames" ]; then
21 - /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
22 - echo "FAILED"
23 - exit 1;
24 -fi
25 -
26 -for mwDb in "${mwDbNames[@]}"
27 -do
28 - if mwscript extensions/LocalisationUpdate/update.php \
29 - --wiki="$mwDb" \
30 - --outdir=/home/wikipedia/common/php/cache/l10n \
31 - --all \
32 - --quiet
33 - then
34 - echo "Completed. Syncing to Apaches"
35 - /home/wikipedia/bin/sync-l10nupdate
36 - echo "Clearing message blobs"
37 - mwscript maintenance/wmf/clearMessageBlobs.php --wiki="$mwDb"
38 - echo "All done"
39 - else
40 - /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
41 - echo "FAILED"
42 - fi
43 -done
44 -## Apache clients should sync updates locally every X hours or at scap time
45 -# Not needed anymore as of 3/20/2011 --Roan
 2+#!/bin/sh
 3+# This script belongs in /home/wikipedia/bin/.
 4+PATH=/bin:/usr/bin:/sbin:/usr/sbin:
 5+
 6+umask 0002
 7+
 8+echo "Starting l10nupdate at `date`."
 9+if svn up --ignore-externals /home/wikipedia/l10n/trunk/phase3 &&
 10+ svn up --ignore-externals /home/wikipedia/l10n/trunk/extensions
 11+then
 12+ echo "SVN update completed."
 13+else
 14+ /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
 15+ echo "FAILED"
 16+ exit 1;
 17+fi
 18+
 19+mwDbNames=(`mwversionsinuse --dbonly`)
 20+if [ -z "$mwDbNames" ]; then
 21+ /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
 22+ echo "FAILED"
 23+ exit 1;
 24+fi
 25+
 26+for mwDb in "${mwDbNames[@]}"
 27+do
 28+ if mwscript extensions/LocalisationUpdate/update.php \
 29+ --wiki="$mwDb" \
 30+ --outdir=/home/wikipedia/common/php/cache/l10n \
 31+ --all \
 32+ --quiet
 33+ then
 34+ echo "Completed. Syncing to Apaches"
 35+ /home/wikipedia/bin/sync-l10nupdate
 36+ echo "Clearing message blobs"
 37+ mwscript maintenance/wmf/clearMessageBlobs.php --wiki="$mwDb"
 38+ echo "All done"
 39+ else
 40+ /home/wikipedia/bin/dologmsg "!log LocalisationUpdate failed"
 41+ echo "FAILED"
 42+ fi
 43+done
 44+## Apache clients should sync updates locally every X hours or at scap time
 45+# Not needed anymore as of 3/20/2011 --Roan
Property changes on: trunk/tools/mwmultiversion/scripts/l10nupdate
___________________________________________________________________
Added: svn:eol-style
4646 + native

Past revisions this follows-up on

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

Status & tagging log