]> diplodocus.org Git - nmh/commitdiff
Try using -man instead of -mandoc in test-manpages on OpenBSD
authorDavid Levine <levinedl@acm.org>
Fri, 13 Dec 2013 22:25:24 +0000 (16:25 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 13 Dec 2013 22:25:24 +0000 (16:25 -0600)
to see if it silences the warnings.

test/manpages/test-manpages

index 3459a9e43e8c8a65aeaaff3b4b96d0c8f4d3bdbf..570ff33543a4b12f25557c6138f3b63294440f6d 100755 (executable)
@@ -36,10 +36,15 @@ touch "$expected" "$actual"
 length=`echo $prefix | awk '{print length($0)}'`
 [ $length -gt 35 ]  &&  suppress_break_warning=-Wbreak
 
+#### OpenBSD's mandoc spits out a lot of warnings.
+case `uname -s` in
+  OpenBSD) macpac=-man ;;
+  *)       macpac=-mandoc ;;
+esac
 warnings="-ww $suppress_break_warning"
 
 for manpage in man?/*.?; do
-  groff -Tutf8 -mandoc $warnings "$manpage" > /dev/null 2>>"$actual"
+  groff -Tutf8 $macpac $warnings "$manpage" >/dev/null 2>>"$actual"
 done
 
 check "$expected" "$actual"