Debian Codegraph @

eg/post-commit

raw
1 #!/bin/sh
2
3 # vim: ts=4:sw=4:et:ai:sts=4
4 #
5 # KGB - an IRC bot helping collaboration
6 # Copyright © 2008 Martina Ferrari
7 #
8 # This program is free software; you can redistribute it and/or modify it under
9 # the terms of the GNU General Public License as published by the Free Software
10 # Foundation; either version 2 of the License, or (at your option) any later
11 # version.
12 #
13 # This program is distributed in the hope that it will be useful, but WITHOUT
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16 # details.
17 #
18 # You should have received a copy of the GNU General Public License along with
19 # this program; if not, write to the Free Software Foundation, Inc., 51
20 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22
23 REPOS="$1"
24 REV="$2"
25
26 BOT="`dirname "$0"`"/KGB/script/kgb-client
27 URI="http://localhost:9999/"
28
29 REPO_ID="`echo "$REPOS" | sed 's/-/_/g; s#^.*\(/srv/svn.debian.org\|\)/svn/\(.\+\)$#\2#; s#/*$##'`"
30 PASSWORD="secret"
31
32 #"$BOT" --uri "$URI" --repo-id "$REPO_ID" --password "$PASSWORD" "$REPOS" "$REV"
33 "$BOT" --conf /path/to/client.conf "$REPOS" "$REV"