[rancid] modifying diff conditions

'heasley' heas at shrubbery.net
Fri Nov 22 00:26:30 UTC 2013


Tue, Nov 19, 2013 at 09:07:38PM +0000, Wayne Eisenberg:
> if [ $RCSSYS = "cvs" ] ; then
>     cvs -f diff -U 4 -ko --ignore-matching-lines='(.*av-.*|.*wildfire-.*|.*threat-.*|.*url-filtering-.*|.*app-.*|.*call-forwarding.*)'  | sed -e '/^RCS file: /d'   -e '/^--- /d' \   -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff

I messed around with this option a bit.  what i've discovered is that
1) is doesnt accept extended regexps
2) it does allow the option to appear more than once, or at least twice
3) http://www.delorie.com/gnu/docs/cvs/cvs_130.html implies that it will
   only work for changes that affect one line.  ie:
	--ignore-matching-lines='foo'
   will not filter a diff like:
	> interface foo
	>  description foo to spamalot
4) it does not appear to appear to work with -U

YFMV (your frustration may vary).


More information about the Rancid-discuss mailing list