#!/bin/sh
REPOS="$1"
REV="$2"

SVNLOOK=/usr/bin/svnlook
PHP=/usr/bin/php
MANTIS=/var/apache/htdocs/mantis/core/checkin.php

COMMIT_MSG=`$SVNLOOK log -r $REV "$REPOS"`
CHANGED_FILES=`$SVNLOOK changed -r $REV "$REPOS" | sed s/^/SVN:$REV:/`

$PHP -f $MANTIS <<zzzMantiszzz
$COMMIT_MSG

--- Changed Files ---
SVN:Revision: $REV
$CHANGED_FILES
zzzMantiszzz
