Hi Raphael, sorry if I message you directly, I'm following the suggestion on [1]: "Feel free to ask RaphaelHertzog if you need more information on this subject." (with "subject" being "Configuring SVN to send commit notifications"). I'm trying to work on Debian-Med's space on alioth (you might have noticed this ;) ), but I've encountered some problems with the post-commit hook. Here's what I've done so far. I've created a website/ directory under trunk/community/, and a hooks/ directory under trunk/. In the hooks/ directory I've done a simple post-commit script: ---8<--- #!/bin/sh REPOS="$1" REV="$2" # let's update our http://debian-med.alioth.debian.org/ if svnlook dirs-changed $REPOS | grep -q '^community/website/' then /var/lib/gforge/chroot/home/groups/debian-med/update-website $REV fi ---8<--- and propset svn:executable to *. Here's the update-website script: ---8<--- #!/bin/sh REV=$1 REPOS="svn://svn.debian.org/svn/debian-med/trunk/community/website/" echo "Updating website... rev. $REV" svn --force export $REPOS htdocs/ # let's substitute our variables... AUTH=$(svn log $REPOS | grep "^r$REV" | awk '{print $3}') sed -e "s/#REV#/$REV/" \ -e "s/#DATE#/`date -uR`/" \ -e "s@#AUTHOR#@$AUTH@" -i htdocs/index.html ---8<--- Everything should work, but it doesn't. I can't understand why though :( Could you help me/us? Kind regards, David [1] http://wiki.debian.org/AliothPackagingProject -- . ''`. Debian maintainer | http://snipurl.com/qa_page/ : :' : Linuxer #334216 | http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://www.debianizzati.org/ `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
Attachment:
signature.asc
Description: PGP signature