]>
git.saurik.com Git - wxWidgets.git/blob - misc/scripts/svn/hooks/post-commit
5 AUTHOR
=`svnlook author $REPOS -r $REV`
6 REPONAME
=`basename $REPOS`
7 ##URL="http://svn.wxwidgets.org/viewvc/$REPONAME?view=rev&rev=%s"
8 URL
="http://trac.wxwidgets.org/changeset/%s"
9 TICKET_MAP
='\[?#\s*(\d+)\]?=http://trac.wxwidgets.org/ticket/%s'
11 EMAIL1
="wx-commits-diffs@googlegroups.com"
12 EMAIL2
="wx-commits@googlegroups.com"
13 EMAIL3
="wxPython-commits@googlegroups.com"
14 FROM
="noreply@wxsite.net"
15 REPLYTO1
="wx-dev@googlegroups.com"
17 REPLYTO3
="wxPython-dev@googlegroups.com"
19 WXPYTHON
=`svnlook dirs-changed $REPOS -r $REV | grep -ce ^wxPython`
21 if [ $WXPYTHON = 0 ]; then
22 # Send notification with diffs
23 /usr
/bin
/svnnotify
--repos-path "$REPOS" \
27 --reply-to $REPLYTO1 \
28 --subject-prefix "SVN:($AUTHOR)" \
30 --ticket-map $TICKET_MAP \
33 --diff-switches '--no-diff-added --no-diff-deleted' \
34 --max-diff-length 10240 \
35 --handler Alternative \
36 --alternative HTML
::ColorDiff \
41 # Send plain text notification without diffs to a different address
42 /usr
/bin
/svnnotify
--repos-path "$REPOS" \
46 --reply-to $REPLYTO2 \
47 --subject-prefix "SVN:($AUTHOR)" \
52 # Send notification to the wxPython address
53 /usr
/bin
/svnnotify
--repos-path "$REPOS" \
57 --reply-to $REPLYTO3 \
58 --subject-prefix "SVN:($AUTHOR)" \
60 --ticket-map $TICKET_MAP \
63 --handler HTML
::ColorDiff \
64 --diff-switches '--no-diff-added --no-diff-deleted' \
65 --max-diff-length 10240 \
70 # Send notification to cia.vc
71 $REPOS/hooks
/ciabot_svn.py
"$REPOS" $REV &
74 # Check for keywords that Trac can use
75 export PYTHONPATH
=/home
/wxsite
/domains
/trac.wxwidgets.org
/htdocs
/lib
/python
76 export PYTHON_EGG_CACHE
=/tmp
/.python
-eggs
77 /usr
/bin
/python2.5
$REPOS/hooks
/trac
-post-commit-hook \
78 -p /home
/wxsite
/domains
/trac.wxwidgets.org
/htdocs
/wxtrac
-r $REV &