head	1.2;
access;
symbols
	RELENG_4_11_0_RELEASE:1.1.1.1
	RELENG_4_11:1.1.1.1.0.32
	RELENG_4_11_BP:1.1.1.1
	RELENG_4_10_0_RELEASE:1.1.1.1
	RELENG_4_10:1.1.1.1.0.30
	RELENG_4_10_BP:1.1.1.1
	RELENG_4_9_0_RELEASE:1.1.1.1
	RELENG_4_9:1.1.1.1.0.28
	RELENG_4_9_BP:1.1.1.1
	RELENG_4_8_0_RELEASE:1.1.1.1
	RELENG_4_8:1.1.1.1.0.26
	RELENG_4_8_BP:1.1.1.1
	RELENG_4_7_0_RELEASE:1.1.1.1
	RELENG_4_7:1.1.1.1.0.24
	RELENG_4_7_BP:1.1.1.1
	RELENG_4_6_2_RELEASE:1.1.1.1
	RELENG_4_6_1_RELEASE:1.1.1.1
	RELENG_4_6_0_RELEASE:1.1.1.1
	RELENG_4_6:1.1.1.1.0.22
	RELENG_4_6_BP:1.1.1.1
	RELENG_4_5_0_RELEASE:1.1.1.1
	RELENG_4_5:1.1.1.1.0.20
	RELENG_4_5_BP:1.1.1.1
	RELENG_4_4_0_RELEASE:1.1.1.1
	RELENG_4_4:1.1.1.1.0.18
	RELENG_4_4_BP:1.1.1.1
	RELENG_4_3_0_RELEASE:1.1.1.1
	RELENG_4_3:1.1.1.1.0.16
	RELENG_4_3_BP:1.1.1.1
	RELENG_4_2_0_RELEASE:1.1.1.1
	RELENG_4_1_1_RELEASE:1.1.1.1
	PRE_SMPNG:1.1.1.1
	RELENG_4_1_0_RELEASE:1.1.1.1
	RELENG_3_5_0_RELEASE:1.1.1.1
	RELENG_4_0_0_RELEASE:1.1.1.1
	RELENG_4:1.1.1.1.0.14
	RELENG_4_BP:1.1.1.1
	RELENG_3_4_0_RELEASE:1.1.1.1
	RELENG_3_3_0_RELEASE:1.1.1.1
	RELENG_3_2_PAO:1.1.1.1.0.12
	RELENG_3_2_PAO_BP:1.1.1.1
	RELENG_3_2_0_RELEASE:1.1.1.1
	RELENG_3_1_0_RELEASE:1.1.1.1
	RELENG_3:1.1.1.1.0.10
	RELENG_3_BP:1.1.1.1
	RELENG_2_2_8_RELEASE:1.1.1.1
	RELENG_3_0_0_RELEASE:1.1.1.1
	RELENG_2_2_7_RELEASE:1.1.1.1
	RELENG_2_2_6_RELEASE:1.1.1.1
	RELENG_2_2_5_RELEASE:1.1.1.1
	RELENG_2_2_2_RELEASE:1.1.1.1
	RELENG_2_2_1_RELEASE:1.1.1.1
	RELENG_2_2_0_RELEASE:1.1.1.1
	RELENG_2_1_7_RELEASE:1.1.1.1
	RELENG_2_1_6_1_RELEASE:1.1.1.1
	RELENG_2_1_6_RELEASE:1.1.1.1
	RELENG_2_2:1.1.1.1.0.8
	RELENG_2_2_BP:1.1.1.1
	RELENG_2_1_5_RELEASE:1.1.1.1
	RELENG_2_1_0_RELEASE:1.1.1.1
	RELENG_2_1_0:1.1.1.1.0.6
	RELENG_2_1_0_BP:1.1.1.1
	RELENG_2_0_5_RELEASE:1.1.1.1
	RELENG_2_0_5:1.1.1.1.0.4
	RELENG_2_0_5_BP:1.1.1.1
	RELENG_2_0_5_ALPHA:1.1.1.1
	RELEASE_2_0:1.1.1.1
	BETA_2_0:1.1.1.1
	ALPHA_2_0:1.1.1.1.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2002.05.29.04.07.49;	author mpp;	state dead;
branches;
next	1.1;

1.1
date	94.05.30.19.08.57;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.05.30.19.08.58;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Remove the share/man/tools directory.  Nothing in here works anymore, and
'manck' from ports does just about everything these tools ever did.
(I did have these 90% working about 5 years ago, but manck came along.....)

The only file of interest might be sp.ignore, but it can be pulled
from the attic if anyone has that much interest.

Inspired by: Mark Murray's deletion of share/man/man0
@
text
@set x $*
. ./.param

if test -z "$ID"
then
	DIR2=/usr/nman
else
	DIR2=$ID
fi

if test ! -d $DIR2 
then
	echo "mcmp: $DIR2 - not a directory"
	exit
fi

for dir in $DIRLST
do
	date > $TMPDIR/tmp3.$$
	echo >> $TMPDIR/tmp3.$$
	cd $MANDIR/man$dir
	echo "Comparison of $MANDIR/man$dir and $DIR2/man$dir:">>$TMPDIR/tmp3.$$
	echo >> $TMPDIR/tmp3.$$
	ls $FILLST > $TMPDIR/tmp1.$$
	cd $DIR2/man$dir
	ls $FILLST > $TMPDIR/tmp2.$$
	cd $MANDIR/man$dir
	echo "Files found in $MANDIR/man$dir only:" >> $TMPDIR/tmp3.$$
	comm -23 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ | sed "s/^/	/" >> $TMPDIR/tmp3.$$
	echo >> $TMPDIR/tmp3.$$
	echo "Files found in $DIR2/man$dir only:" >> $TMPDIR/tmp3.$$
	comm -13 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ | sed "s/^/	/" >> $TMPDIR/tmp3.$$
	echo >> $TMPDIR/tmp3.$$
	comm -12 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ > $TMPDIR/tmp.$$
	rm -f $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$
	if [ ! -s $TMPDIR/tmp.$$ ]
	then
		echo "No common files for comparison" >> $TMPDIR/tmp3.$$
		if [ -n "$LFLAG" ]
		then
			mv $TMPDIR/tmp3.$$ $TMPDIR/diff$dir
		else
			mv $TMPDIR/tmp3.$$ $TMPDIR/cmp$dir
		fi
		continue
	fi
	if [ -n "$LFLAG" ]
	then
		mv $TMPDIR/tmp3.$$ $TMPDIR/diff$dir
		echo "Diffs of common files ($MANDIR=< $DIR2=>):" >> $TMPDIR/diff$dir
	else
		mv $TMPDIR/tmp3.$$ $TMPDIR/cmp$dir
		echo "Files that differ:" >> $TMPDIR/cmp$dir
	fi
	while read file
	do
		if [ -z "$LFLAG" ]
		then
			cmp -s $file $DIR2/man$dir/$file
			if [ $? -ne 0 ]
			then
				echo "\\t$file" >> $TMPDIR/cmp$dir
			fi
		else
			diff $file $DIR2/man$dir/$file > $TMPDIR/tmp1.$$
			if [ $? -eq 1 ]
			then
				echo "\\n\\t****$file****" >> $TMPDIR/diff$dir
				cat $TMPDIR/tmp1.$$ >> $TMPDIR/diff$dir
			fi
		fi
	done < $TMPDIR/tmp.$$
	rm -f $TMPDIR/tmp1.$$
done

rm -f $TMPDIR/tmp.$$
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@BSD 4.4 Lite Share Sources
@
text
@@
