]>
diplodocus.org Git - nmh/blob - test/manpages/test-manpages
2 ######################################################
4 # Test that the manpages don't have any syntax errors
5 # as detected by groff.
7 ######################################################
15 cd ${MH_INST_DIR}${mandir} || exit 1
17 # groff will still exit with status zero even if warnings
18 # were emitted, so we have to jump through hoops to
19 # find out if any were emitted.
21 expected
=$MH_TEST_DIR/$$.expected
22 actual
=$MH_TEST_DIR/$$.actual
24 # There aren't any expected warnings at the moment but
25 # this mechanism does let us add them if necessary later.
26 rm -f "$expected" "$actual"
27 touch "$expected" "$actual"
29 for manpage
in man?
/*.?
; do
30 groff -Tutf8 -mandoc -wmac "$manpage" > /dev
/null
2>>"$actual"
33 diff -u "$expected" "$actual"