Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
* ChangeLog: Added.
Browse files Browse the repository at this point in the history
* postcommit-svn.sh: Added svn post-commit hook.

svn path=/trunk/monkeywrench/; revision=128205
  • Loading branch information
rolfbjarne committed Feb 27, 2009
1 parent 5062dd0 commit 03b84e6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Empty file added scripts/ChangeLog
Empty file.
40 changes: 40 additions & 0 deletions scripts/postcommit-svn.sh
@@ -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

0 comments on commit 03b84e6

Please sign in to comment.