[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Multiple post-commit scripts for multiple projects

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-08-18 02:37:33 CEST

Graham Anderson <grahama1970@gmail.com> writes:
> Is there a pre-existing template/example for something like this? I
> am more than a bit new at writing post-commit scripts.
>
> I was successfully using this post-commit 'compiled' C example.
> Unfortunately, this will only work as one post-commit per repository
> :(
> #include <stddef.h>
> #include <stdlib.h>
> #include <unistd.h>
> int main(void)
> {
> execl("/usr/local/bin/svn", "svn", "update", "/home/joe/
> public_html/",
> (const char *) NULL);
> return(EXIT_FAILURE);
> }

You probably should write your hook in a scripting language (like
Python), using existing post-commit scripts (found on the Internet and
in Subversions tools/ and contrib/ areas) as examples.

If there's someone in your organization, or a friend, with some
scripting experience, you should take advantage of that. It'll save
you a *lot* of time. (I think the kind of help you want may be beyond
the usual scope of this list, though anyone's certainly welcome to
volunteer to help of course).

Good luck,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 18 02:35:22 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.