diff options
Diffstat (limited to '')
-rwxr-xr-x | bin/addproject | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/addproject b/bin/addproject index 28ab0f5..3572a28 100755 --- a/bin/addproject +++ b/bin/addproject @@ -75,6 +75,18 @@ main() { rm -f ${tmpfile} fi + eheading "creating subversion post-commit hook" + cat <<EOF > ${svn_home}/hooks/post-commit +#!/bin/bash + +REPOS="\$1" +REV="\$2" +TRAC_ENV="/var/lib/trac/${project_name}/" + +/usr/bin/python /usr/local/bin/trac-post-commit-hook -p "\$TRAC_ENV" -r "\$REV" +EOF + eexec chmod +x ${svn_home}/hooks/post-commit + eheading "creating new trac project" eexec mysqladmin create ${trac_db} eexec trac-admin ${trac_home} initenv --inherit=${TRAC_INI} ${project_name} \ |