Date: Mon, 14 Dec 1998 23:40:59 +0000 From: Brian Somers <brian@Awfulhak.org> To: Mikael Karpberg <karpen@ocean.campus.luth.se> Cc: brian@Awfulhak.org (Brian Somers), mark@grondar.za, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc Makefile Message-ID: <199812142340.XAA11999@keep.lan.Awfulhak.org> In-Reply-To: Your message of "Mon, 14 Dec 1998 13:35:17 %2B0100." <199812141235.NAA12670@ocean.campus.luth.se>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
>
[-- Attachment #2 --]
#! /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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812142340.XAA11999>
