Subversion

在 Apache 裡的設定

<VirtualHost 1.2.3.4:80>
    DocumentRoot /home/wwwadm/svn.example.com/webroot
    ServerName svn.example.com
    ErrorLog "/var/log/httpd/svn.example.com-error_log"
    CustomLog "/var/log/httpd/svn.example.com-access_log" combined

    <Location /svn>
        DAV svn
        SVNParentPath "/home/wwwadm/svn.example.com/repository"
    </Location>
</VirtualHost>

Hook

#!/bin/sh

# Path
BASEDIR="/home/wwwadm/www.example.com"
COMMITEMAIL="/usr/local/share/subversion/hook-scripts/commit-email.pl"

# Program
SVN="/usr/local/bin/svn"

# Mail to group.example@group.nctu.edu.tw
${COMMITEMAIL} "$1" "$2" -h svn.example.com group.example@group.nctu.edu.tw > /dev/null &

# disable normal message, byt display warning message
cd "${BASEDIR}"
${SVN} up > /dev/null