info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trigerring several actions on commit


From: Jim Hyslop
Subject: Re: trigerring several actions on commit
Date: Fri, 20 May 2005 12:50:15 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Guillaume Rousse wrote:
I had a small look in the list archive and in the on-line manual without being able to find an answer: can I trigger several actions with a single commit ?

My own tries make me think that only the first line with a regexp matching the commit directory is used, and subsequent ones are silently ignored.

I could use a wrapper scripts encapsulating the different tasks, however I don't want to use the same list of task for all the different parts of a repository. In other terms, I'd like to do something as:
^foo report-mail
^foo/www extract-website

Meaning sending mail for any commit in foo modules, and additionaly extracting web pages for the www subdirectory.


^foo foo_commit.sh
^foo/www foo_www_commit.sh

where foo_commit.sh and foo_www_commit.sh call whatever scripts you need.

Or, have a single foo_commit.sh script, which uses `cwd` to determine if it's in the www subdirectory, and if so, invoke extract-website.

--
Jim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]