3 # Check various man pages for consistency issues related to
4 # possible changes in the code base
8 trap "rm -f $tmp.*; exit 0" 0 1 2 3 15
10 # man pages that are not in the GNUmakefile will not be included
17 [ "$file" = GNUmakefile
] && continue
18 if grep "[ ]$file" GNUmakefile
>/dev
/null
22 echo "$dir/$file: not in GNUmakefile"
28 # completeness of PM_ERR codes in man3/pcpintro.3
30 if [ -x ..
/src
/pmerr
/pmerr
]
34 echo >&2 "Warning: using installed pmerr not newly built one ..."
38 -e 's/^-[0-9]*[ ]*//' \
43 awk <man
3/pcpintro
.3 '
44 /^.TP/ { want = 1; next }
45 want == 1 && /^.B PM_ERR/ { print $2 }
49 comm -23 $tmp.codes
$tmp.desc
>$tmp.tmp
52 echo "Error codes defined but not documented in man3/pcpintro.3:"
53 sed -e 's/^/ /' $tmp.tmp
55 comm -13 $tmp.codes
$tmp.desc
>$tmp.tmp
58 echo "Error codes documented in man3/pcpintro.3 but not defined:"
59 sed -e 's/^/ /' $tmp.tmp
62 # references to Irix are probably needing to be retired ... other
63 # than the previously checked exceptions
65 grep -r -i irix man? \
67 -e '/man5\/pmns.5:.*IRIX:[A-Z]/d' \
68 -e '/man1\/pcpintro.1:.*MacOSX, IRIX, AIX/d' \
69 -e '/man1\/pmie.1:.*\/SGI_Admin\/books\/PCP_IRIX\//d' \
70 -e '/man5\/pmns.5:#define IRIX 1/d'