Index: trunk/tools/mwmultiversion/scripts/scap-2 |
— | — | @@ -0,0 +1,40 @@ |
| 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 | +
|
| 17 | +echo -n Compiling texvc...
|
| 18 | +
|
| 19 | +builddir=`mktemp -dt texvc-build.XXXXXXXXXX`
|
| 20 | +if [ -z "$builddir" ]; then
|
| 21 | + echo "Unable to create temporary directory"
|
| 22 | + exit 1
|
| 23 | +fi
|
| 24 | +
|
| 25 | +rsync -r --exclude=.svn/ /usr/local/apache/common-local/php-1.17/math/ "$builddir"
|
| 26 | +cd "$builddir"
|
| 27 | +if make -f Makefile texvc >/dev/null 2>/dev/null; then
|
| 28 | + echo ok
|
| 29 | + install -d /usr/local/apache/uncommon/1.17/bin
|
| 30 | + install -m 755 "$builddir"/texvc /usr/local/apache/uncommon/1.17/bin
|
| 31 | +else
|
| 32 | + echo failed
|
| 33 | + exit 1
|
| 34 | +fi
|
| 35 | +rm -r "$builddir"
|
| 36 | +cd /
|
| 37 | +
|
| 38 | +
|
| 39 | +#echo -n "Restarting apache... "
|
| 40 | +#/usr/bin/apache-sanity-check && ( sudo /usr/sbin/apache2ctl stop; sudo killall -9 apache2;sleep 3; sudo /usr/sbin/apache2ctl start )
|
| 41 | +
|