This repository has been archived by the owner on Dec 14, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* postcommit-svn.sh: Added svn post-commit hook. svn path=/trunk/monkeywrench/; revision=128205
- Loading branch information
1 parent
5062dd0
commit 03b84e6
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh -ex | ||
|
||
# configurable variables | ||
|
||
REPOSITORY_ROOT=mono-cvs.ximian.com/source | ||
REPORT_URL=http://sublimeintervention.com:8123/ReportCommit.aspx | ||
|
||
## | ||
|
||
REPOS="$1" | ||
REV="$2" | ||
|
||
TMPFILE=`mktemp` | ||
|
||
# write xml start | ||
|
||
cat >$TMPFILE <<EOF | ||
<monkeywrench version="1"> | ||
<changeset sourcecontrol="svn" root="$REPOSITORY_ROOT"> | ||
<directories> | ||
EOF | ||
|
||
# write directories | ||
for directory in `svnlook dirs-changed -r $REV $REPOS`; do | ||
echo " <directory>$directory</directory" >> $TMPFILE | ||
done | ||
|
||
# write xml end | ||
|
||
cat >>$TMPFILE <<EOF | ||
</directories> | ||
</changeset> | ||
</monkeywrench> | ||
EOF | ||
|
||
curl $REPORT_URL --form xml=@$TMPFILE | ||
|
||
rm $TMPFILE | ||
|
||
# exit 1 |