|
From: Wizard <wi...@ne...> - 2002-02-02 12:12:21
|
> I was just wondering if people has figured out how to have cvs put the > log in a different file, or if anything has been tried. There's a CVS admin file called 'loginfo', which I believe does what you are expecting. It's purpose is to run a program at every commit. I've never used it, so you're on your own. Here's an excerpt from the man: (http://www.cvshome.org/docs/manual/cvs_18.html#SEC169) ==== Excerpt ========================================= The following `loginfo' file, together with the tiny shell-script below, appends all log messages to the file `$CVSROOT/CVSROOT/commitlog', and any commits to the administrative files (inside the `CVSROOT' directory) are also logged in `/usr/adm/cvsroot-log'. Commits to the `prog1' directory are mailed to ceder. ALL /usr/local/bin/cvs-log $CVSROOT/CVSROOT/commitlog $USER ^CVSROOT /usr/local/bin/cvs-log /usr/adm/cvsroot-log ^prog1 Mail -s %s ceder The shell-script `/usr/local/bin/cvs-log' looks like this: #!/bin/sh (echo "------------------------------------------------------"; echo -n $2" "; date; echo; cat) >> $1 Grant M. |