Index: trunk/debs/wikimedia-task-appserver/mwversionsinuse |
— | — | @@ -1,6 +1,6 @@ |
2 | | -#!/bin/sh
|
3 | | -# Shell wrapper for the local version of multiversion/activeMWVersions.
|
4 | | -# This script belongs in /usr/bin/ and should be in PATH.
|
5 | | -if ! /usr/local/apache/common-local/multiversion/activeMWVersions "$@"; then
|
6 | | - exit 1
|
7 | | -fi
|
| 2 | +#!/bin/sh |
| 3 | +# Shell wrapper for the local version of multiversion/activeMWVersions. |
| 4 | +# This script belongs in /usr/bin/ and should be in PATH. |
| 5 | +if ! /usr/local/apache/common-local/multiversion/activeMWVersions "$@"; then |
| 6 | + exit 1 |
| 7 | +fi |
Property changes on: trunk/debs/wikimedia-task-appserver/mwversionsinuse |
___________________________________________________________________ |
Added: svn:eol-style |
8 | 8 | + native |
Property changes on: trunk/debs/wikimedia-task-appserver/apache-sanity-check |
___________________________________________________________________ |
Added: svn:eol-style |
9 | 9 | + native |
Property changes on: trunk/debs/wikimedia-task-appserver/sync-common |
___________________________________________________________________ |
Added: svn:eol-style |
10 | 10 | + native |
Property changes on: trunk/debs/wikimedia-task-appserver/scap-1 |
___________________________________________________________________ |
Added: svn:eol-style |
11 | 11 | + native |
Index: trunk/debs/wikimedia-task-appserver/scap-2 |
— | — | @@ -1,51 +1,51 @@ |
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 | | -# wikiversions.dat just synced above
|
17 | | -mwVersionNums=`mwversionsinuse`
|
18 | | -if [ -z "$mwVersionNums" ]; then
|
19 | | - echo "Unable to read wikiversions.dat or it is empty"
|
20 | | - exit 1
|
21 | | -fi
|
22 | | -
|
23 | | -for mwVerNum in "${mwVersionNums[@]}"
|
24 | | -do
|
25 | | - echo "MediaWiki $mwVerNum: 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 | | - IP=/usr/local/apache/common-local/php-"$mwVerNum"
|
33 | | - # 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
|
36 | | - else
|
37 | | - MATHPATH=$IP/math
|
38 | | - fi
|
39 | | -
|
40 | | - rsync -r --exclude=.svn/ $MATHPATH/ "$builddir"
|
41 | | - cd "$builddir"
|
42 | | - if make -f Makefile texvc >/dev/null 2>/dev/null; then
|
43 | | - echo "ok"
|
44 | | - install -d /usr/local/apache/uncommon/"$mwVerNum"/bin
|
45 | | - install -m 755 "$builddir"/texvc /usr/local/apache/uncommon/"$mwVerNum"/bin
|
46 | | - else
|
47 | | - echo "failed"
|
48 | | - exit 1
|
49 | | - fi
|
50 | | - rm -r "$builddir"
|
51 | | - cd /
|
52 | | -done
|
| 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 | +# wikiversions.dat just synced above |
| 17 | +mwVersionNums=`mwversionsinuse` |
| 18 | +if [ -z "$mwVersionNums" ]; then |
| 19 | + echo "Unable to read wikiversions.dat or it is empty" |
| 20 | + exit 1 |
| 21 | +fi |
| 22 | + |
| 23 | +for mwVerNum in "${mwVersionNums[@]}" |
| 24 | +do |
| 25 | + echo "MediaWiki $mwVerNum: 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 | + IP=/usr/local/apache/common-local/php-"$mwVerNum" |
| 33 | + # 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 |
| 36 | + else |
| 37 | + MATHPATH=$IP/math |
| 38 | + fi |
| 39 | + |
| 40 | + rsync -r --exclude=.svn/ $MATHPATH/ "$builddir" |
| 41 | + cd "$builddir" |
| 42 | + if make -f Makefile texvc >/dev/null 2>/dev/null; then |
| 43 | + echo "ok" |
| 44 | + install -d /usr/local/apache/uncommon/"$mwVerNum"/bin |
| 45 | + install -m 755 "$builddir"/texvc /usr/local/apache/uncommon/"$mwVerNum"/bin |
| 46 | + else |
| 47 | + echo "failed" |
| 48 | + exit 1 |
| 49 | + fi |
| 50 | + rm -r "$builddir" |
| 51 | + cd / |
| 52 | +done |
Property changes on: trunk/debs/wikimedia-task-appserver/scap-2 |
___________________________________________________________________ |
Added: svn:eol-style |
53 | 53 | + native |
Property changes on: trunk/debs/wikimedia-task-appserver/authorized_keys |
___________________________________________________________________ |
Added: svn:eol-style |
54 | 54 | + native |
Property changes on: trunk/debs/wikimedia-task-appserver/check-time |
___________________________________________________________________ |
Added: svn:eol-style |
55 | 55 | + native |
Property changes on: trunk/debs/wikimedia-task-appserver/apache-start |
___________________________________________________________________ |
Added: svn:eol-style |
56 | 56 | + native |
Property changes on: trunk/debs/wikimedia-task-appserver/scap-1skins |
___________________________________________________________________ |
Added: svn:eol-style |
57 | 57 | + native |