ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/svnadmin/hooks/scripts/update-root.sh
Revision: 6421
Committed: Sat Nov 30 20:59:17 2013 UTC (10 years, 5 months ago) by laffer1
Content type: application/x-sh
File size: 609 byte(s)
Log Message:
create initial svn hooks for src based on mports hooks

File Contents

# Content
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

Properties

Name Value
svn:executable *