/[pkg-kde]/scripts/svn-hooks/post-commit
ViewVC logotype

Contents of /scripts/svn-hooks/post-commit

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8873 - (show annotations) (download)
Wed Jan 9 20:51:57 2008 UTC (5 years, 4 months ago) by adeodato
File size: 1778 byte(s)
umask 002 here too
1 #!/bin/sh
2
3 # POST-COMMIT HOOK
4 #
5 # The post-commit hook is invoked after a commit. Subversion runs
6 # this hook by invoking a program (script, executable, binary,
7 # etc.) named 'post-commit' (for which
8 # this file is a template) with the following ordered arguments:
9 #
10 # [1] REPOS-PATH (the path to this repository)
11 # [2] REV (the number of the revision just committed)
12 #
13 # Because the commit has already completed and cannot be undone,
14 # the exit code of the hook program is ignored. The hook program
15 # can use the 'svnlook' utility to help it examine the
16 # newly-committed tree.
17 #
18 # On a Unix system, the normal procedure is to have 'post-commit'
19 # invoke other programs to do the real work, though it may do the
20 # work itself too.
21 #
22 # Note that 'post-commit' must be executable by the user(s) who will
23 # invoke it (typically the user httpd runs as), and that user must
24 # have filesystem-level permission to access the repository.
25 #
26 # On a Windows system, you should name the hook program
27 # 'post-commit.bat' or 'post-commit.exe',
28 # but the basic idea is the same.
29 #
30 # Here is an example hook script, for a Unix /bin/sh interpreter:
31
32 # set -x
33 # exec >>`dirname $0`/`basename $0`.log 2>&1
34
35 umask 002
36
37 REPOS="$1"
38 REV="$2"
39 WEB_DIR=/var/lib/gforge/chroot/home/groups/pkg-kde/web-autoupdate/www/v2
40
41 . /org/alioth.debian.org/chroot/home/groups/pkg-kde/scripts/common
42
43 if dirchanged scripts; then
44 svn update $SCRIPTS_DIR
45 fi
46
47 if dirchanged www; then
48 svn update $WEB_DIR
49 $WEB_DIR/genweb-hook.sh
50 fi
51
52 #/svn/pkg-kde/hooks/commit-email.pl "$REPOS" "$REV" debian-qt-kde@lists.debian.org
53 /svn/pkg-kde/hooks/commit-email.pl "$REPOS" "$REV" pkg-kde-commits@lists.alioth.debian.org
54 # CHRIS CHENEY - NONEXISTANT SCRIPT
55 #log-commit.py --repository "$REPOS" --revision "$REV"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5