Index: trunk/tools/mwmultiversion/scripts/scap-2 |
— | — | @@ -21,15 +21,22 @@ |
22 | 22 | |
23 | 23 | for mwVerNum in "${mwVersionNums[@]}" |
24 | 24 | do |
25 | | - echo "MediaWiki $mwVerNum:" |
26 | | - echo -n "Compiling texvc..." |
| 25 | + echo "MediaWiki $mwVerNum: Compiling texvc..." |
27 | 26 | builddir=`mktemp -dt texvc-build.XXXXXXXXXX` |
28 | 27 | if [ -z "$builddir" ]; then |
29 | 28 | echo "Unable to create temporary directory" |
30 | 29 | exit 1 |
31 | 30 | fi |
32 | 31 | |
33 | | - rsync -r --exclude=.svn/ /usr/local/apache/common-local/php-"$mwVerNum"/math/ "$builddir" |
| 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" |
34 | 41 | cd "$builddir" |
35 | 42 | if make -f Makefile texvc >/dev/null 2>/dev/null; then |
36 | 43 | echo "ok" |