summaryrefslogtreecommitdiff
path: root/share/man/tools/ckspell
blob: 90f01cc03e918f5e60d796b450953bba5af8958c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh
#
#	$NetBSD: ckspell,v 1.2 1998/01/09 08:04:59 perry Exp $
#
set x $*
. ./.param

TOOLS=$MANDIR/tools

date > $TMPDIR/sp.errs
echo >> $TMPDIR/sp.errs

for dir in $DIRLST
do
	cd $MANDIR/man$dir
	echo "cat <<'EOF' >----------------" >> $TMPDIR/sp.errs
	echo "Section $dir" >> $TMPDIR/sp.errs
	for file in $FILLST
	do
		spell $file >> $TMPDIR/tmp.$$
	done
	sort $TMPDIR/tmp.$$ | uniq | comm -23 - $TOOLS/sp.ignore >> $TMPDIR/sp.errs
	> $TMPDIR/tmp.$$
done

rm -f $TMPDIR/tmp.$$