13 echo "mcmp: $DIR2 - not a directory"
19 date > $TMPDIR/tmp3.$$
20 echo >> $TMPDIR/tmp3.$$
22 echo "Comparison of $MANDIR/man$dir and $DIR2/man$dir:">>$TMPDIR/tmp3.$$
23 echo >> $TMPDIR/tmp3.$$
24 ls $FILLST > $TMPDIR/tmp1.$$
26 ls $FILLST > $TMPDIR/tmp2.$$
28 echo "Files found in $MANDIR/man$dir only:" >> $TMPDIR/tmp3.$$
29 comm -23 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ | sed "s/^/ /" >> $TMPDIR/tmp3.$$
30 echo >> $TMPDIR/tmp3.$$
31 echo "Files found in $DIR2/man$dir only:" >> $TMPDIR/tmp3.$$
32 comm -13 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ | sed "s/^/ /" >> $TMPDIR/tmp3.$$
33 echo >> $TMPDIR/tmp3.$$
34 comm -12 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ > $TMPDIR/tmp.$$
35 rm -f $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$
36 if [ ! -s $TMPDIR/tmp.$$ ]
38 echo "No common files for comparison" >> $TMPDIR/tmp3.$$
41 mv $TMPDIR/tmp3.$$ $TMPDIR/diff$dir
43 mv $TMPDIR/tmp3.$$ $TMPDIR/cmp$dir
49 mv $TMPDIR/tmp3.$$ $TMPDIR/diff$dir
50 echo "Diffs of common files ($MANDIR=< $DIR2=>):" >> $TMPDIR/diff$dir
52 mv $TMPDIR/tmp3.$$ $TMPDIR/cmp$dir
53 echo "Files that differ:" >> $TMPDIR/cmp$dir
59 cmp -s $file $DIR2/man$dir/$file
62 echo "\\t$file" >> $TMPDIR/cmp$dir
65 diff $file $DIR2/man$dir/$file > $TMPDIR/tmp1.$$
68 echo "\\n\\t****$file****" >> $TMPDIR/diff$dir
69 cat $TMPDIR/tmp1.$$ >> $TMPDIR/diff$dir