Write a wrapper script around the commit. All it does is this:
1) cvs commit <files>
2) if successfull on commit
- update test tree.
donald
On Tue, Mar 14, 2000 at 09:17:36AM -0500, Mikael Grave wrote:
> Hello,
>
> I am currently writing a small Shell script that will log into my CVS
> respository and will issue a checkout. This script is intended to be
> called every 10mn by a crontab.
>
> Since "cvs login" does not have a command line option to pass the
> password, I was wondering if there is a simple trick to run "cvs login"
> automatically? I have tried things like:
>
> echo "xxxxx" | cvs login
>
> But it does not work (the password is not taken from the buffered stdin
> I guess).
>
> My original purpose was to perform an automatic checkout (in a test bed)
> every time someone was doing a commit. Doing this with "commitinfo" did
> not seem possible since "cvs commit" recursively commit all modified
> files, if 100 files are commited at once, I don't want commitinfo to
> launch 100 checkouts (maybe should I simply run one "update" per
> "committed" file?). So I decided to go for a crontab (not as good, user
> may have to wait 10mn to see their changes published in the test bed).
>
> Any help or trick are welcome. I guess my problem is quite common. Hope
> my questions are not too stupid :)
>
> Cordially,
>
> Mikael
> --
> Mikael Grave Tel. (613) 731-4046 http://www.webmotion.com
> Webmotion Inc. Fax. (613) 260-9545 [EMAIL PROTECTED]
> `----------------------------------------------------------------'
>