r94527 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94526‎ | r94527 | r94528 >
Date:17:18, 15 August 2011
Author:aaron
Status:ok
Tags:
Comment:
Account for Math being moved to an extension
Modified paths:
  • /trunk/tools/mwmultiversion/scripts/scap-2 (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/scripts/scap-2
@@ -21,15 +21,22 @@
2222
2323 for mwVerNum in "${mwVersionNums[@]}"
2424 do
25 - echo "MediaWiki $mwVerNum:"
26 - echo -n "Compiling texvc..."
 25+ echo "MediaWiki $mwVerNum: Compiling texvc..."
2726 builddir=`mktemp -dt texvc-build.XXXXXXXXXX`
2827 if [ -z "$builddir" ]; then
2928 echo "Unable to create temporary directory"
3029 exit 1
3130 fi
3231
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"
3441 cd "$builddir"
3542 if make -f Makefile texvc >/dev/null 2>/dev/null; then
3643 echo "ok"

Status & tagging log