From owner-cvs-all Mon Dec 14 15:40:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA01334 for cvs-all-outgoing; Mon, 14 Dec 1998 15:40:03 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA01267; Mon, 14 Dec 1998 15:39:56 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id XAA02728; Mon, 14 Dec 1998 23:39:47 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.1/8.9.1) with ESMTP id XAA11999; Mon, 14 Dec 1998 23:40:59 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199812142340.XAA11999@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Mikael Karpberg cc: brian@Awfulhak.org (Brian Somers), mark@grondar.za, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc Makefile In-reply-to: Your message of "Mon, 14 Dec 1998 13:35:17 +0100." <199812141235.NAA12670@ocean.campus.luth.se> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_9463025310" Date: Mon, 14 Dec 1998 23:40:59 +0000 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk This is a multipart MIME message. --==_Exmh_9463025310 Content-Type: text/plain; charset=us-ascii Pleasure... > According to Brian Somers: > > [.....] > > > since last time. It would be real handy with a "make check_etc" which > > > would list files missing, and (based on the RCS id and/or change dates) > > > what files have been updated, or which users/groups have been > > > added/removed. > > > > > > That would be real nice to do before or after you make world, just to > > > remind you of what you must look at updating. > > > > I think this is a good idea - nothing as complicated as mergemaster, > > but rather a target that will go through all the Id keywords in > > src/etc and compare them with the stuff in /etc, the aim being to > > identify new & changed files. > > Exactly. > > > Alternatively, this could be introduced as a commented out > > /etc/periodic/daily script (hey, I've already got one locally!). > > Hmm... Maybe you could email me that script privately, and I'll take a > look at it when I sit down and try to fix a "make check-etc"? > > /Mikael > --==_Exmh_9463025310 Content-Type: application/octet-stream ; name="etc-diffs" Content-Description: etc-diffs Content-Disposition: attachment; filename="etc-diffs" #! /bin/sh # # $Id: etc-diffs,v 1.3 1998/09/15 22:19:33 brian Exp $ arch=`uname -m` test ."$1" = .-a && all=TRUE || all=FALSE cd /usr/src/etc for f in $(find . -type f) do test ! -f $f && continue case $f in */CVS/*) continue;; */Makefile*) continue;; ./sendmail/*) continue;; ./etc.$arch/*) ;; ./etc.*) continue;; esac case $f in ./minfree) e=/var/crash/${f##*/};; */MAKEDEV*) e=/dev/${f##*/};; ./root/dot.*) e=/root/${f#./root/dot};; ./etc.*) e=/etc/${f##*/};; *) e=/etc/${f#./};; esac if [ ! -f $e ] then echo "$e: missing" continue fi newid=$(fgrep '$I'd: $f | awk '{ print $4; }') oldid=$(fgrep '$I'd: $e | awk '{ print $4; }') if [ -z "$newid" ] then test $all = TRUE && echo "/usr/src/etc/$f: No Id keyword" elif [ -z "$newid" ] then echo "$e: No Id keyword" elif [ "$newid" != "$oldid" ] then echo "$e: $oldid -> $newid" fi done --==_Exmh_9463025310-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message