Index: branches/hardy/debs/wikimedia-task-appserver/scap-2 |
— | — | @@ -13,14 +13,13 @@ |
14 | 14 | fi |
15 | 15 | |
16 | 16 | # wikiversions.dat just synced above |
17 | | -mwVersionNums=`mwversionsinuse` |
| 17 | +mwVersionNums=$(mwversionsinuse) |
18 | 18 | if [ -z "$mwVersionNums" ]; then |
19 | 19 | echo "Unable to read wikiversions.dat or it is empty" |
20 | 20 | exit 1 |
21 | 21 | fi |
22 | 22 | |
23 | | -for mwVerNum in "${mwVersionNums[@]}" |
24 | | -do |
| 23 | +for mwVerNum in ${mwVersionNums[@]}; do |
25 | 24 | echo "MediaWiki $mwVerNum: Compiling texvc..." |
26 | 25 | builddir=`mktemp -dt texvc-build.XXXXXXXXXX` |
27 | 26 | if [ -z "$builddir" ]; then |
— | — | @@ -28,12 +27,12 @@ |
29 | 28 | exit 1 |
30 | 29 | fi |
31 | 30 | |
32 | | - IP=/usr/local/apache/common-local/php-"$mwVerNum" |
| 31 | + mwIP=/usr/local/apache/common-local/php-"$mwVerNum" |
33 | 32 | # Math was moved out to an extension in MW 1.18 |
34 | | - if [ -d $IP/extensions/Math/math ]; then |
35 | | - MATHPATH=$IP/extensions/Math/math |
| 33 | + if [ -d $mwIP/extensions/Math/math ]; then |
| 34 | + MATHPATH=$mwIP/extensions/Math/math |
36 | 35 | else |
37 | | - MATHPATH=$IP/math |
| 36 | + MATHPATH=$mwIP/math |
38 | 37 | fi |
39 | 38 | |
40 | 39 | rsync -r --exclude=.svn/ $MATHPATH/ "$builddir" |
Index: branches/hardy/debs/wikimedia-task-appserver/scap-1skins |
— | — | @@ -1,8 +1,12 @@ |
2 | 2 | #!/bin/bash |
3 | 3 | |
4 | | -mwVersionNums=`mwversionsinuse` |
5 | | -for mwVerNum in "${mwVersionNums[@]}" |
6 | | -do |
| 4 | +mwVersionNums=$(mwversionsinuse) |
| 5 | +if [ -z "$mwVersionNums" ]; then |
| 6 | + echo "Unable to read wikiversions.dat or it is empty" |
| 7 | + exit 1 |
| 8 | +fi |
| 9 | + |
| 10 | +for mwVerNum in ${mwVersionNums[@]}; do |
7 | 11 | sudo -u mwdeploy sh -c " |
8 | 12 | rsync -a --no-perms 10.0.5.8::common/php-$mwVerNum/skins/ \ |
9 | 13 | /usr/local/apache/common-local/php-$mwVerNum/skins && \ |