Il giorno Tue, 2 Oct 2007 11:10:29 +0200 Raphael Hertzog <hertzog@debian.org> ha scritto: > On Tue, 02 Oct 2007, David Paleino wrote: > > I've created a website/ directory under trunk/community/, and a hooks/ > > directory under trunk/. > > The hooks directory is not meant to be stored in the repository, it's a > real directory on the real filesystem: try ls -al /svn/debian-med/hooks/ Still doesn't work :( Instead of using "svn export", I've seen that most projects' htdocs/ are anonymous checkouts of what's in repositories. Thus I changed the script where needed: ---8<--- #!/bin/sh REPOS=$1 REV=$2 echo "Updating website... rev. $REV" ( cd htdocs/; svn up ) # let's substitute our variables... AUTH=$(svnlook author $REPOS -r $REV) sed -e "s/#REV#/$REV/" \ -e "s/#DATE#/`date -uR`/" \ -e "s/#AUTHOR#/$AUTH/" -i htdocs/index.html ---8<--- /svn/debian-med/hooks/post-commit is what I already pasted. I've done lots of test commits, and the post-commit hook seems like isn't run. I fear I'm missing something really obvious now. Could you please take a look? > Cheers, Thank you for your help, David -- . ''`. 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