1 |
#! /bin/sh |
2 |
# check out/update SVN control files if needed |
3 |
REV="$2" |
4 |
REPO="$1" |
5 |
if svnlook -r $REV dirs-changed $REPO | grep '^svnadmin/hooks/' > /dev/null |
6 |
then |
7 |
echo "Updating repository control files." 1>&2 |
8 |
cd $REPO/hooks |
9 |
output=`svn up --accept theirs-full 2>&1` |
10 |
if [ $? != 0 ]; then |
11 |
echo "svn update of hooks config files failed: $output, $!" 1>&2 |
12 |
fi |
13 |
fi |
14 |
|
15 |
if svnlook -r $REV dirs-changed $REPO | grep '^svnadmin/conf/' > /dev/null |
16 |
then |
17 |
cd $REPO/conf |
18 |
output=`svn up --accept theirs-full 2>&1` |
19 |
if [ $? != 0 ]; then |
20 |
echo "svn update of conf config files failed: $output, $!" 1>&2 |
21 |
fi |
22 |
fi |