cvsup.sh - cvs update with output filtered to bare basics
cvsup.sh [all normal cvs up command options] cvsup.sh -A cvsup.sh -dP cvsup.sh -nq
The output of cvs update
is a long listing of non needed information.
Sometimes you are only interested in if there are any conflicts that
need to be resolved. This program run cvs update
and presents
only information which needs attention. The difference in listing
can be seen below.
$ cvs up cvs server: Updating . cvs server: Updating complete cvs server: Updating lib M lib/file.cc C lib/file.hh cvs server: Updating lib ...
And with cvsup.sh
$ cvsup.sh
pwd: /home/foo/work/project/this M lib/file.cc C lib/file.hh
Expecially for cron jobs, it would be better if the job outputted only whern there is something to inform. If the cron job produce no output, no message is sent to user. So instead of using
0 6 * * * cd $HOME/devel/; cvs up
Use the quiet, filtered, version (make sure cvs.up is along PATH) and you receive message only when the update did something:
0 6 * * * cd $HOME/devel/; cvsup.sh
None.
No environment varibles.
No files used.
cvs(1)
None.
None.
http://cvs-tools.sourceforge.net
any
$Id: cvsup.sh,v 1.5 2004/04/05 09:25:25 jaalto Exp $
Copyright (C) 2003-2004 Jari Aalto reserved. This program is free software; you can redistribute and/or modify program under the same terms of Gnu General Public licence v2 or later.