mergemaster comparing everything.

doug doug at fledge.watson.org
Sat Nov 13 14:49:52 UTC 2010


On Fri, 12 Nov 2010, Leon Me?ner wrote:

> Hi,
>
> is there a trick besides using the rcs funktion of mergemaster to get
> around having to look at every file in /etc for comparison?
> I know there once was a bug in mergemaster but it's closed for a long
> time now.
>
> Example:
>
>  *** Displaying differences between ./etc/periodic/daily/300.calendar
> and installed version:
>
> --- /etc/periodic/daily/300.calendar    2010-07-29 12:54:42.000000000
> +0200
> +++ ./etc/periodic/daily/300.calendar   2010-11-12 17:06:33.000000000
> +0100
> @@ -1,6 +1,6 @@
> #!/bin/sh
> #
> -# $FreeBSD: src/etc/periodic/daily/300.calendar,v 1.5.36.1.4.1
> 2010/06/14 02:09:06 kensmith Exp $
> +# $FreeBSD: src/etc/periodic/daily/300.calendar,v 1.5.36.1 2009/08/03
> 08:13:06 kensmith Exp $
> #
> # `calendar -a' needs to die. Why? Because it's a bad idea, particular
> # with networked home directories, but also in general.  If you want
> # the
>
> 90% of the differences are just in this cvs? tag lines. This is an
> upgrade from 8.1 to -STABLE.
>
> Greetings,
> Leon

Check out the man page version 8 with FBSD there are many options. I tossed a 
script I wrote in favor of the following in /etc/mergemaster.rc:

  # Automatically install files that do not exist
  AUTO_INSTALL='yes'
  # Automatically upgrade files that have not been edited
  AUTO_UPGRADE='yes'
  # Ignore files that I don't want changed
  #IGNORE_FILES='/etc/motd'
  # Do not display changes that only affect whitespace
  #DIFF_FLAG="'.Bub'"
  # Ignore CVS id lines to stop replacing files where only that line has changed
  DIFF_OPTIONS='-I$FreeBSD:.*[$]'

With apologizes to whoever first posted this, I did not save the name.


More information about the freebsd-questions mailing list