From 050837293fd14801c43b6cdedb8f4af1561a00de Mon Sep 17 00:00:00 2001 From: dougb Date: Tue, 12 Feb 2002 09:54:56 +0000 Subject: * Update (c) * Fix a problem with files that have no CVS $Id's. Thanks to naddy for spotting this one. It wasn't a _huge_ problem since almost all the files we install (except motd) have one, but still, it's a bug. * Add a divider between diff outputs, which is helpful both for logs, and for giving a good visual clue for diffs that are smaller than $LINES. Another helpful suggestion from Gary W. Swearingen, swear@blarg.net. --- usr.sbin/mergemaster/mergemaster.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/mergemaster/mergemaster.sh b/usr.sbin/mergemaster/mergemaster.sh index 92b327b..10746d8 100755 --- a/usr.sbin/mergemaster/mergemaster.sh +++ b/usr.sbin/mergemaster/mergemaster.sh @@ -5,7 +5,7 @@ # Compare files created by /usr/src/etc/Makefile (or the directory # the user specifies) with the currently installed copies. -# Copyright 1998-2001 Douglas Barton +# Copyright 1998-2002 Douglas Barton # DougB@FreeBSD.org # $FreeBSD$ @@ -109,6 +109,9 @@ diff_loop () { "${HANDLE_COMPFILE}" = "NOT V" ]; do if [ -f "${DESTDIR}${COMPFILE#.}" -a -f "${COMPFILE}" ]; then if [ "${HANDLE_COMPFILE}" = "v" -o "${HANDLE_COMPFILE}" = "V" ]; then + echo '' + echo ' ====================================================================== ' + echo '' ( echo '' echo " *** Displaying differences between ${COMPFILE} and installed version:" @@ -731,7 +734,7 @@ for COMPFILE in `find . -type f -size +0`; do # user will have less to wade through if files are left to merge by hand. # CVSID1=`grep "[$]${CVS_ID_TAG}:" ${DESTDIR}${COMPFILE#.} 2>/dev/null` - CVSID2=`grep "[$]${CVS_ID_TAG}:" ${COMPFILE} 2>/dev/null` + CVSID2=`grep "[$]${CVS_ID_TAG}:" ${COMPFILE} 2>/dev/null` || CVSID2=none case "${CVSID2}" in "${CVSID1}") -- cgit v1.1